// file : Utility/ExH/Compound.tpp // author : Boris Kolpackov // copyright : Copyright (c) 2002-2003 Boris Kolpackov // license : http://kolpackov.net/license.html #include "Utility/ExH/Converter.hpp" namespace Utility { namespace ExH { // c-tor's & d-tor template Compound:: Compound () throw () { } template Compound:: Compound (char const* description) throw () { Base::init (description); } template Compound:: Compound (std::string const& description) throw () { try { Base::init (description.c_str ()); } catch (...) { } } template template Compound:: Compound (T const& description) throw () { Base::init (converter (description).c_str ()); } template Compound:: Compound (Compound const& src) throw () { Base::init (src.what ()); } template Compound:: ~Compound () throw () { } // operator= template Compound& Compound:: operator= (Compound const& src) throw () { Base::init (src.what ()); return *this; } } } //$Id$