]> git.tdb.fi Git - libs/core.git/blobdiff - source/lexicalcast.h
Further style and comment adjustments
[libs/core.git] / source / lexicalcast.h
index 42393fe251c9bbaee8b56c3767437d70a4ad18e3..3bfc342a1f584e91cc218eb24b226c7a29c777da 100644 (file)
@@ -24,6 +24,7 @@ public:
        LexicalError(const std::string &w_): Exception(w_) { }
 };
 
+
 /**
 Helper class for lexical_cast to facilitate operator overloading.
 */
@@ -42,6 +43,7 @@ public:
        void result(const std::string &);
 };
 
+
 void operator<<(LexicalConverter &, char);
 void operator<<(LexicalConverter &, signed char);
 void operator<<(LexicalConverter &, short);
@@ -105,7 +107,7 @@ void operator>>(const LexicalConverter &c, T &v)
 // The main interface to the lexical conversion machinery
 
 template<typename T>
-inline T lexical_cast(const std::string &s, const Fmt &f=Fmt())
+inline T lexical_cast(const std::string &s, const Fmt &f = Fmt())
 {
        LexicalConverter conv(s, f);
        T result;
@@ -114,7 +116,7 @@ inline T lexical_cast(const std::string &s, const Fmt &f=Fmt())
 }
 
 template<typename T>
-inline std::string lexical_cast(const T &v, const Fmt &f=Fmt())
+inline std::string lexical_cast(const T &v, const Fmt &f = Fmt())
 {
        LexicalConverter conv(f);
        conv<<v;