Re: C++11

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

> Markus Wanner <[email protected]> writes:
>
>>   NetBSD 5.1                  shipping gcc 3.3
>>   OpenBSD 5.5                 shipping gcc 4.2
>>   Debian squeeze (oldstable): shipping gcc 4.4
>>   Ubuntu 10.04 LTS (lucid):   shipping gcc 4.4
>>   RHEL 6:                     shipping gcc 4.4
>>   CentOS 6.5:                 shipping gcc 4.4
>>   FreeBSD 9.0                 shipping gcc 4.4
>>   Fedora 14:                  shipping gcc 4.5
>>   OpenSuse 11.4               shipping gcc 4.5
>>   Slackware 13.37             shipping gcc 4.5
>>
>> These (and newer) should be fine:
>>
>>   Ubuntu LTS 12.04 (precise): shipping 4.4 - 4.8
>>   Debian stable (wheezy):     shipping 4.6 and 4.8
>>   Fedora 15:                  shipping gcc 4.6
>>   FreeBSD 9.2                 shipping gcc 4.6
>>   OpenSuse 12.1:              shipping gcc 4.6
>>   Slackware 14.0              shipping gcc 4.7
>>   NetBSD 6.1                  shipping gcc 4.8
>>   RHEL 7                      shipping gcc 4.8 (?)
>
> Thanks for the list.
>
> You left out Windows:
>
> msys2 mingw64           4.9
> cygwin 64 bit           4.8
>
>> Out of these, RHEL 6 hurts the most, IMO. 
>
> Yes. That's the required OS for my day job, which is where I use mtn the
> most. And I want to stay with mtn head, so I can add new conflict
> resolutions etc :).
>
> We also have to run RHEL 5 for a couple of version-frozen projects. But
> those don't need the latest monotone, just netsync compatibility.
>
>> However, there's the RedHat Developer Toolset, shipping gcc 4.7. 
>
> I was not aware of that, nor of RHEL 7.
>
> In addition, we use AdaCore tools, which provide gcc 4.7. I'll
> try testing with that.

Not good:

gcc --version
gcc (GCC) 4.7.4 20131104 for GNAT Pro 7.2.1 (20140108)

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'


Also, I notice you are using -std=gnu++11; shouldn't that be
-std=iso9899:2011, so we don't rely on gnu extensions?

-- 
-- Stephe
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.