diff options
author | Vas Crabb <vas@vastheman.com> | 2016-03-06 12:51:22 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2016-03-06 12:51:22 +1100 |
commit | 078e954270872fd65a7d6d9d7a41c3c73346d526 (patch) | |
tree | dcd8802721f60ab75604b63fd7067c0485b44675 | |
parent | 7c338e1e7dcae83682ab757d5f73276b67af2bc2 (diff) |
This depends on libstdc++ version, not GCC version
It's possible to make GCC use older/newer libstdc++ or to use Clang with libstdc++
This is still the wrong place for it - we should have all compiler/library workarounds in one place, not at point of use, to avoid duplication/conflicts
-rw-r--r-- | src/lib/util/strformat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/strformat.h b/src/lib/util/strformat.h index dc8061ca944..0b65e942e9f 100644 --- a/src/lib/util/strformat.h +++ b/src/lib/util/strformat.h @@ -185,7 +185,7 @@ #include <type_traits> #include <utility> -#if defined(__GNUC__) && ((__GNUC__ == 5 && __GNUC_MINOR__ < 2) || (__GNUC__ == 4 && __GNUC_MINOR__ > 8)) +#if defined(__GLIBCXX__) && (__GLIBCXX__ < 20150413) namespace std { template<class _Container> |