[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] C++11
From: |
Markus Wanner |
Subject: |
Re: [Monotone-devel] C++11 |
Date: |
Thu, 15 May 2014 22:27:14 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 |
On 05/15/2014 09:18 PM, Stephen Leake wrote:
> gcc --version
> gcc (GCC) 4.7.4 20131104 for GNAT Pro 7.2.1 (20140108)
for GNAT Pro?!?
> In file included from ../mandatory-cxx11/src/globish.cc:14:0:
> ../mandatory-cxx11/src/option.hh: In member function
> option::option_set<T> option::option_set<T>::operator|(const
> option::option_set<T>&) const':
> ../mandatory-cxx11/src/option.hh:332:7: error: 'set_union' is not a member of
> 'std'
> ../mandatory-cxx11/src/option.hh: In member function
> option::option_set<T> option::option_set<T>::operator-(const
> option::option_set<T>&) const':
> ../mandatory-cxx11/src/option.hh:340:7: error: 'set_difference' is not a
> member of 'std'
> ../mandatory-cxx11/src/globish.cc: In function
> std::basic_string<char>::const_iterator compile_charclass(const
> string&, std::basic_string<char>::const_iterator,
> std::back_insert_iterator<std::basic_string<char> >&, origin::type)':
> ../mandatory-cxx11/src/globish.cc:141:7: error: 'sort' is not a member of
> 'std'
Hm.. there's nothing new about std::sort. Nor set_union or
set_difference. This looks more like you're using some weird standard
library.
Does that g++ version compile plain nvm? That's is using the very same
standard library functions from <algorithm>...
> Also, I notice you are using -std=gnu++11; shouldn't that be
> -std=iso9899:2011, so we don't rely on gnu extensions?
The m4 script is supposed to use -std=gnu++11 only if -std=c++11 is not
supported. I haven't ever seen -std=iso9899:2011, before, but certainly
prefer the shorter variant.
Does your g++ support -std=c++11? If so, it looks like the m4 macro is
failing to do its job properly.
Regards
Markus Wanner
signature.asc
Description: OpenPGP digital signature
- Re: [Monotone-devel] C++11, (continued)
- Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/13
- Re: [Monotone-devel] C++11, Markus Wanner, 2014/05/13
- Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/15
- Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/15
- Re: [Monotone-devel] C++11, Markus Wanner, 2014/05/15
- Re: [Monotone-devel] C++11, Hendrik Boom, 2014/05/16
- Re: [Monotone-devel] Rust to the World! [was: C++11], Markus Wanner, 2014/05/16
- Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/15
- Re: [Monotone-devel] C++11,
Markus Wanner <=
- 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, Stephen Leake, 2014/05/16
- Re: [Monotone-devel] C++11, Markus Wanner, 2014/05/16
- Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/17
- Re: [Monotone-devel] C++11, Markus Wanner, 2014/05/17
- Re: [Monotone-devel] C++11, Hendrik Boom, 2014/05/16
- Re: [Monotone-devel] C++11, Markus Wanner, 2014/05/16
- Re: [Monotone-devel] C++11, Hendrik Boom, 2014/05/16
- Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/16