summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/lexical.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/lexical.h')
-rw-r--r--Build/source/utils/asymptote/lexical.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/lexical.h b/Build/source/utils/asymptote/lexical.h
index fc3879961d6..89f3edb37ab 100644
--- a/Build/source/utils/asymptote/lexical.h
+++ b/Build/source/utils/asymptote/lexical.h
@@ -9,14 +9,14 @@ namespace lexical {
class bad_cast {};
-template <typename T>
-T cast(const string& s, bool tolerant=false)
+template <typename T>
+T cast(const string& s, bool tolerant=false)
{
istringstream is(s);
T value;
if(is && is >> value && ((is >> std::ws).eof() || tolerant)) return value;
throw bad_cast();
-}
+}
}