Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 47
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
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
I think it has to be

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

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


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 69 09-08-2017 03:09 PM
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 > Forums > Non-*NIX Forums > Programming

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

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