Jean-Marc Lasgouttes wrote: > Le 21/12/2014 18:23, Georg Baum a écrit : >> commit 0842aa06e45d0d182c34924f03b045056795e0c2 >> Author: Georg Baum <[email protected]> >> Date: Sun Dec 21 18:22:33 2014 +0100 >> >> Do not use tr1 with libc++ >> >> clang defines __GNUC__ but libc++ does not have tr1, so we either >> need to use boost, or std and compile in c++11 mode. > > What about getting rid of TR1 support altogether? It was just a stopgap > measure until c++11 was released, right?
I have no strong opinion about this. Currently, I am just playing around with -std=c++11 flags, learning about subtleties and fixing what is obviously broken. > Do we rely on it in some cases? Don't know. Strictly speaking, it is not needed at all, since we have a boost fallback if c++11 is not fully supported by the compiler. Especially for regex, we either need MSVC or boost, since neither std not std::tr1 contain match_partial. BTW, both <regex> and <tr1/regex> are completely broken for gcc < 4.9.0: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53631 Georg
