18#ifndef VOTCA_TOOLS_LEXICAL_CAST_H
19#define VOTCA_TOOLS_LEXICAL_CAST_H
26#include <boost/lexical_cast.hpp>
37template <
typename Target,
typename Source>
38inline Target
lexical_cast(
const Source &arg,
const std::string &error) {
40 return boost::lexical_cast<Target, Source>(arg);
41 }
catch (std::exception &) {
42 throw std::runtime_error(
"invalid type: " + error);
base class for all analysis tools