Skip to content
Snippets Groups Projects
Commit 88ada995 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added tnlString constructor for conversion from unsigned int

parent d4364346
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ template<> inline tnlString getType< bool >() { return tnlString( "bool" ); };
template<> inline tnlString getType< short int >() { return tnlString( "short int" ); };
template<> inline tnlString getType< int >() { return tnlString( "int" ); };
template<> inline tnlString getType< long int >() { return tnlString( "long int" ); };
template<> inline tnlString getType< unsigned int >() { return tnlString( "unsigned int" ); };
template<> inline tnlString getType< char >() { return tnlString( "char" ); };
template<> inline tnlString getType< float >() { return tnlString( "float" ); };
template<> inline tnlString getType< double >() { return tnlString( "double" ); };
......
......@@ -49,6 +49,12 @@ tnlString :: tnlString( const tnlString& str )
setString( str. getString() );
}
tnlString :: tnlString( unsigned number )
: string( 0 ), length( 0 )
{
this->setString( convertToString( number ).getString() );
}
tnlString :: tnlString( int number )
: string( 0 ), length( 0 )
{
......
......@@ -56,6 +56,8 @@ class tnlString
tnlString( const tnlString& str );
//! Convert number to a string
tnlString( unsigned number );
tnlString( int number );
tnlString( long int number );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment