Re: C++11
Markus Wanner <[email protected]>
| Newsgroups | gmane.comp.version-control.monotone.devel |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Monotone-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/monotone-devel
signature.asc
(application/pgp-signature, 242 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEAREDAAYFAlN1IyMACgkQsPwMloDjyo/7XACfffHt+Ex9WMoWRDR2YILe+toM qp4An3Rid5/odchvy56ICAwkB6SY+vN7 =trfF -----END PGP SIGNATURE-----