aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/utility.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-05 11:55:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-05 11:55:15 +0200
commit9fb791e9fad6c63fc1dac49f4d05ae63b8a3db9b (patch)
treed60322d4382ca5f97b676c5abe2e39524f35eab4 /build/cxx/utility.txx
parentf159b1dac68c8714f7ba71ca168e3b695891aad9 (diff)
Rename build directory/namespace to build2
Diffstat (limited to 'build/cxx/utility.txx')
-rw-r--r--build/cxx/utility.txx35
1 files changed, 0 insertions, 35 deletions
diff --git a/build/cxx/utility.txx b/build/cxx/utility.txx
deleted file mode 100644
index 561a54e..0000000
--- a/build/cxx/utility.txx
+++ /dev/null
@@ -1,35 +0,0 @@
-// file : build/cxx/utility.txx -*- C++ -*-
-// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-using namespace std;
-
-namespace build
-{
- namespace cxx
- {
- template <typename T>
- void
- append_std (cstrings& args, T& t, std::string& s)
- {
- if (auto l = t["cxx.std"])
- {
- const std::string& v (as<string> (*l));
-
- // Translate 11 to 0x and 14 to 1y for compatibility with
- // older versions of the compiler.
- //
- s = "-std=c++";
-
- if (v == "11")
- s += "0x";
- else if (v == "14")
- s += "1y";
- else
- s += v;
-
- args.push_back (s.c_str ());
- }
- }
- }
-}