Hi
I have a function which takes const std::wstring& font_family, i.e.
Font Font::CreateFont(const std::wstring& font_family){ ... }
By question is how can I call that funcion by passing a string literal (e.g monospace)?
I tried
CreateFont("monospace");
CreateFont("std::wstring("monospace") );
Both does not compile. Any one have better idea?
Thank you.