From: Valentin Koch <koch@nagra.com>
Subject: Strange warning when compiling with cxx 6.2
Date: 2000/05/18 [thread overview]
Message-ID: <3923E84C.10DDF60A@nagra.com> (raw)
Hello,
has anyone an idea what the following warning means:
cxx: Warning: Test.cxx, line 250: initial value of reference to
non-const must be an lvalue
myResult = CSingleton::instance().myFunc();
-----------^
Following what happens in myFunc:
Result CSingleton::myFunc() {
Result theResult;
...
return theResult;
};
struct Result {
auto_ptr<AStruct> myStruct;
string myString;
};
And in Test.cxx:
Result myResult;
if(...) {
myResult = CSingleton::instance().myFunc();
}
next reply other threads:[~2000-05-18 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-18 4:00 Valentin Koch [this message]
2000-05-18 4:00 ` Strange warning when compiling with cxx 6.2 Daniel S. Riley
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox