ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
parameters::conversion::get_< T > Struct Template Reference

#include <parameter_proxy.h>

Public Member Functions

operator() (std::string const &val)
 

Detailed Description

template<class T>
struct parameters::conversion::get_< T >

Definition at line 41 of file parameter_proxy.h.

Member Function Documentation

template<class T>
T parameters::conversion::get_< T >::operator() ( std::string const &  val)
inline

Definition at line 43 of file parameter_proxy.h.

44  {
45  try {
46  return boost::lexical_cast<T>(val);
47  } catch (std::exception &e) {
48  maquis::cerr << "Exception raised casting " << val << " to type " << typeid(T).name() << std::endl;
49  throw e;
50  }
51  }

The documentation for this struct was generated from the following file: