]> git.lyx.org Git - lyx.git/blobdiff - src/support/convert.h
Detect mode_t for safe use of chmod, and for scons/msvc
[lyx.git] / src / support / convert.h
index 22d5f12a8b97d9f0e2dca95f2911e9af2c0cc95e..be2cb6d5b9874bd6da581cec9a7b8451622e2ca8 100644 (file)
 #ifndef CONVERT_H
 #define CONVERT_H
 
-#include <boost/static_assert.hpp>
+namespace lyx {
 
-#include <string>
-
-
-#if 0
-// Commented out since BOOST_STATIC_ASSERT does not work with gcc 4.0
-template <class Target, class Source>
-Target convert(Source arg)
-{
-       // We use a static assert here since we want all instances of
-       // this template to be specializations.
-       BOOST_STATIC_ASSERT(sizeof(bool) == 0);
-       return Target();
-}
-#else
 template <class Target, class Source>
 Target convert(Source arg);
-#endif
-
-
-template<>
-std::string convert<std::string>(bool);
-
-template<>
-std::string convert<std::string>(char);
-
-template<>
-std::string convert<std::string>(unsigned short);
-
-template<>
-std::string convert<std::string>(int);
-
-template<>
-std::string convert<std::string>(unsigned int);
-
-template<>
-std::string convert<std::string>(float);
-
-template<>
-std::string convert<std::string>(double);
 
-template<>
-std::string convert<std::string>(std::string);
+} // namespace lyx
 
 #endif