[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] nvm C++11
From: |
Markus Wanner |
Subject: |
Re: [Monotone-devel] nvm C++11 |
Date: |
Sun, 18 May 2014 20:58:35 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 |
On 05/18/2014 08:18 PM, Stephen Leake wrote:
> 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:
I did that, already. And the Cygwin build animal confirms it works (it
shows a strange failure on one functional test, though). Please pull
from monotone.ca.
> Now I have another one:
I see no issue. Just a reasonable warning. :-)
> 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?
Feel free. Mind you: Older versions of gcc might not know the flag, so
introducing it might actually already raise the barrier... (And I see
use for that warning for nvm.mandatory-cxx11.)
Regards
Markus Wanner
signature.asc
Description: OpenPGP digital signature
- 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