summaryrefslogtreecommitdiff
path: root/graphics/asymptote/lexical.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
committerNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
commit3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch)
tree1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/lexical.h
parentd99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff)
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/lexical.h')
-rw-r--r--graphics/asymptote/lexical.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/asymptote/lexical.h b/graphics/asymptote/lexical.h
index fc3879961d..89f3edb37a 100644
--- a/graphics/asymptote/lexical.h
+++ b/graphics/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();
-}
+}
}