X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Flexicalcast.h;h=a2bb43953d43d764e24ff517d62e1ffd0052f6ee;hp=776eaab351561a1d0d2b8af704e95bfff9df3337;hb=5c8c0d5e52bbba8dc3f9c7c71b6e4c973216c600;hpb=9da6abdcabec59f4845da256a8ad75a810ed1589 diff --git a/source/lexicalcast.h b/source/lexicalcast.h index 776eaab..a2bb439 100644 --- a/source/lexicalcast.h +++ b/source/lexicalcast.h @@ -10,7 +10,7 @@ Distributed under the LGPL #include #include -#include +#include #include "fmt.h" namespace Msp { @@ -36,6 +36,12 @@ T lexical_cast(const std::string &s) return tmp; } +template<> +inline std::string lexical_cast(const std::string &s) +{ + return s; +} + template std::string lexical_cast(const T &v, const Fmt &f=Fmt()) {