[tao-bugs] tao c++11 std::auto_ptr deprecated

Johnny Willemsen jwillemsen at remedy.nl
Wed Mar 22 09:38:24 CDT 2017


Hi,

Please use the PRF form so that we know which version TAO version you
are using.
On 03/21/2017 04:38 PM, Ville (Reppu ja Reissumies) wrote:
> Hello,
>
> noticed a minor issue that when c++11 is activated in TAO using
> projects gcc produces warnings
> about std::auto_ptr being deprecated.
>
> ACE_wrappers/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp:169:3: warning:
> ‘template<class> class std::auto_ptr’ is deprecated
> [-Wdeprecated-declarations]
>
> Obviously it can be suppressed or should I instead try building it
> altogether with
> ACE_LACKS_AUTO_PTR?
Just add c+11=1 to the top of your platform_macros.GNU file, that will
suppress the warnings. Getting rid of this warning is some work (also we
have to support C++03). Feel free to make some improvements

Best regards,

Johnny Willemsen
Remedy IT
Postbus 81 | 6930 AB Westervoort | The Netherlands
http://www.remedy.nl


>
> Kind Regards
> Ville Vaittinen
>
> P.S. Another minor thing seen, no idea if the compiler suggestion
> would be valid in that use case
>
> ACE_OS::mktemp(char*)':
> ACE_wrappers/ace/OS_NS_stdlib.inl:284: warning: the use of `mktemp' is
> dangerous, better use `mkstemp'
> _______________________________________________
> tao-bugs mailing list
> tao-bugs at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/tao-bugs



More information about the tao-bugs mailing list