Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

std::wstring #54

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments
Open

std::wstring #54

GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Change the std::string to std::wstring in the beginner tutorial


Please provide any additional information below.
I get an error at :

template < class T >
            void FromString( const std::string& temp, T* out ) const
        {
            std::istringstream val( temp );
            val >> *out;

            if ( val.fail() )
            {
                TICPPTHROW( "Could not convert \"" << temp << "\" to target type" );
            }
        }


When T is a wstring this doesnt compile because std::istringstream doesnt work 
for wstrings.

Original issue reported on code.google.com by barisusa...@gmail.com on 26 Sep 2009 at 2:25

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant