So basically, I'm just messing around with classes and functions and such, and one thing I'd like to know is this:
Say I had this class, that derives off of std::string
class MyString : public std::string {
};
Because I'd like to create variables of type MyString
that initializes the same way as std::string, I'd attempt to use:
using std::string::string;
However, this doesn't seem to work in Visual Studio - to VS, string() is not a member function.
This works in Code::Blocks / G++, why not Visual Studio / VC++?