This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problem default type converting
- From: "Henrik Nilsson \(Developer\)" <hni at bossmedia dot se>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 8 Oct 2002 10:36:02 +0200
- Subject: Problem default type converting
- Reply-to: <hni at bossmedia dot se>
I'm using GCC 2.96 on Linux
My code
class CString{
CString()
CString(const char *)
}
class MyClass{
f(const CString &s){}
}
MyClass my;
my.f("")
Then I get compiler error.
Due to the C++ standard my.f("") should create a temp object like this
my.f(CString("")) but instead
I get compiler error
This is not a big problem I'm just surprised that it seems like GCC is not
following the standard.
Any one who know more abot this?
Henrik