J
Jim
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.
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.