mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-21 15:18:45 +00:00
5843057992
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9454 a592a061-630c-0410-9148-cb99ea01b6c8
37 lines
880 B
C++
37 lines
880 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file convert.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author André Pönitz
|
|
* \author Lars Gullik Bjønnes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*
|
|
* A collection of string helper functions that works with string.
|
|
* Some of these would certainly benefit from a rewrite/optimization.
|
|
*/
|
|
|
|
#ifndef CONVERT_H
|
|
#define CONVERT_H
|
|
|
|
#if 0
|
|
#include <boost/static_assert.hpp>
|
|
|
|
// 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
|
|
|
|
#endif
|