aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/utility.txx
diff options
context:
space:
mode:
Diffstat (limited to 'build/cxx/utility.txx')
-rw-r--r--build/cxx/utility.txx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/cxx/utility.txx b/build/cxx/utility.txx
index 7d9d686..561a54e 100644
--- a/build/cxx/utility.txx
+++ b/build/cxx/utility.txx
@@ -12,9 +12,9 @@ namespace build
void
append_std (cstrings& args, T& t, std::string& s)
{
- if (auto val = t["cxx.std"])
+ if (auto l = t["cxx.std"])
{
- const std::string& v (val.template as<const string&> ());
+ const std::string& v (as<string> (*l));
// Translate 11 to 0x and 14 to 1y for compatibility with
// older versions of the compiler.