Re: nvm C++11

Stephen Leake <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
Markus Wanner <[email protected]> writes:

> We can put such things in src/base.hh or add to CXXFLAGS via the
> configure script. 

I added to src/base.hh:

// Cygwin platform defines __STRICT_ANSI__, but others don't, so undefine it
// here.
#ifdef __STRICT_ANSI__
#undef __STRICT_ANSI__
#endif

That gets past the fdopen issue.

Now I have another one:

g++  -I. -I../monotone    -I/usr/include/botan-1.10          -g -O2 -Wall -Wextra -Wno-unused -Wno-unused-parameter -std=c++11 -MT src/netxx/datagram.o -MD -MP -MF $depbase.Tpo -c -o src/netxx/datagram.o ../monotone/src/netxx/datagram.cxx &&\
mv -f $depbase.Tpo $depbase.Po
../monotone/src/netxx/datagram.cxx: In constructor ‘Netxx::Datagram::Datagram(const char*, Netxx::port_type, const Netxx::Timeout&)’:
../monotone/src/netxx/datagram.cxx:100:29: warning: ‘auto_ptr’ is deprecated (declared at /usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/c++/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
     std::auto_ptr<pimpl> ap(pimpl_ = new pimpl(timeout));

Apparently unique_ptr is supposed to replace auto_ptr. That is done in
mandatory-cxx11. So I guess we should just suppress this warning in nvm?

-- 
-- Stephe

_______________________________________________
Monotone-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.