Fixed type name extraction involving template classes

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@595 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2013-02-06 07:07:59 +00:00
parent f33f31fb29
commit 7e7d6fc5fe

View file

@ -12,6 +12,7 @@
#include <boost/test/utils/basic_cstring/io.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/erase.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <boost/detail/sp_typeinfo.hpp>
#include <boost/shared_ptr.hpp>
#include <stdexcept>
@ -79,6 +80,7 @@ namespace detail
}
std::string clean( std::string name ) const
{
boost::algorithm::trim( name );
boost::algorithm::erase_all( name, "class " );
boost::algorithm::erase_all( name, "struct " );
boost::algorithm::erase_all( name, "__ptr64" );