Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > How do I store ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 13 Topic 43608 of 48047
Post > Topic >>

How do I store a reference?

by Jim <k4gvo@[EMAIL PROTECTED] > Mar 1, 2008 at 05:46 AM

Or can I?  This class failes to compile with the error:

lque.C: In constructor ‘QueTest::QueTest()’:
lque.C:10: error: uninitialized reference member ‘QueTest::que’

#include <deque>
using namespace std;
class QueTest
   {
   public:
     QueTest()
     {}

     void set_que(deque<string>& q)
     {
         que = q;
     }

   private:
     deque<string>& que;
   };

Thanks,
Jim.
 




 13 Posts in Topic:
How do I store a reference?
Jim <k4gvo@[EMAIL PROT  2008-03-01 05:46:46 
Re: How do I store a reference?
=?UTF-8?B?RXJpayBXaWtzdHL  2008-03-01 11:52:43 
Re: How do I store a reference?
Jim <k4gvo@[EMAIL PROT  2008-03-01 07:48:49 
Re: How do I store a reference?
Jeff Schwab <jeff@[EMA  2008-03-01 05:16:45 
Re: How do I store a reference?
raof01 <raof01@[EMAIL   2008-03-02 05:45:40 
Re: How do I store a reference?
raof01 <raof01@[EMAIL   2008-03-02 05:47:02 
Re: How do I store a reference?
Micah Cowan <micah@[EM  2008-03-01 12:51:35 
Re: How do I store a reference?
Jim <k4gvo@[EMAIL PROT  2008-03-01 12:59:54 
Re: How do I store a reference?
Juha Nieminen <nospam@  2008-03-02 11:49:29 
Re: How do I store a reference?
James Kanze <james.kan  2008-03-02 07:19:55 
Re: How do I store a reference?
Richard Herring <junk@  2008-03-03 14:27:26 
Re: How do I store a reference?
Micah Cowan <micah@[EM  2008-03-03 11:05:34 
Re: How do I store a reference?
Szabolcs Ferenczi <sza  2008-03-01 06:16:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Oct 16 0:55:20 CDT 2008.