[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] nvm C++11
From: |
Stephen Leake |
Subject: |
Re: [Monotone-devel] nvm C++11 |
Date: |
Sun, 18 May 2014 13:18:15 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) |
Markus Wanner <address@hidden> 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
- Re: [Monotone-devel] C++11, (continued)
- Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/16
- Re: [Monotone-devel] C++11, Markus Wanner, 2014/05/16
- Re: [Monotone-devel] C++11, LeJacq, Jean Pierre, 2014/05/20
- Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/18
- Re: [Monotone-devel] C++11, Markus Wanner, 2014/05/18
- Re: [Monotone-devel] asio to replace netxx [was: C++11], Markus Wanner, 2014/05/18