4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS.
12 * A collection of string helper functions that works with string.
13 * Some of these would certainly benefit from a rewrite/optimization.
20 #include <boost/static_assert.hpp>
22 // Commented out since BOOST_STATIC_ASSERT does not work with gcc 4.0
23 template <class Target, class Source>
24 Target convert(Source arg)
26 // We use a static assert here since we want all instances of
27 // this template to be specializations.
28 BOOST_STATIC_ASSERT(sizeof(bool) == 0);
32 template <class Target, class Source>
33 Target convert(Source arg);