X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flexicalcast.h;h=a2bb43953d43d764e24ff517d62e1ffd0052f6ee;hb=1493ea58d7f0bbf38a92cc166e9d07be3acebbc9;hp=c73856b8228894374f00b97e2f81dcbcd4532ca2;hpb=381c89769c0ffaa14e6a92c662323b5c45e1eba3;p=libs%2Fcore.git diff --git a/source/lexicalcast.h b/source/lexicalcast.h index c73856b..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()) {