« Return to Thread: [Bug c++/40655] New: The copy constructor is not needed but GCC (C++) don't let me to initialize my object instance!

[Bug c++/40655] The copy constructor is not needed but GCC (C++) don't let me to initialize my object instance!

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View in Thread



------- Comment #3 from jwakely dot gcc at gmail dot com  2009-07-06 17:21 -------
(In reply to comment #0)
>     // ERROR: How could i use the auto keyword which exist in GCC 4.4
>     auto a1 = A (5);

You need to use -std=c++0x to enable C++0x features.


--


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40655

 « Return to Thread: [Bug c++/40655] New: The copy constructor is not needed but GCC (C++) don't let me to initialize my object instance!