-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_DATAFILE_TYPE_H_
#define MSP_DATAFILE_TYPE_H_
{
std::string name;
- Symbol(const std::string &n): name(n) { }
+ template<typename T>
+ Symbol(const T &n): name(lexical_cast(n)) { }
template<typename T> operator T() const { return lexical_cast<T>(name); }
};