LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 06-05-2005, 11:24 PM   #1
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 46
list<type> how can I make type be a pointer?


I need a linked list of items, but they have to be pointers, the items need to exist in other places, and they need to be placed in the list after the fact, I can't just copy them into the list then change everything else to access the memory address within the pointer.

I tried:

list<*type> but that does not work.
 
Old 06-06-2005, 06:15 AM   #2
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 30
I think it has to be

Code:
list<type *>
 
Old 06-06-2005, 09:40 AM   #3
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Original Poster
Rep: Reputation: 46
yes, I fixed it, thanx.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is pointer a data-type or what aditya Programming 39 02-09-2014 01:27 AM
redeferenced pointer to incomplete type Aldair1808 Programming 1 11-28-2005 04:23 PM
ereferencing pointer to incomplete type? ams Programming 5 03-03-2005 11:32 AM
How does one surpress incompatible pointer type warnings? tonyfreeman Programming 1 08-18-2004 07:06 PM
Getting an incompatible pointer type error... JStew Programming 4 03-06-2003 06:08 PM


All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration