codecvt as an abstract base class
David Krauss
potswa@mac.com
Tue Sep 28 23:43:00 GMT 2010
By the way, what was the rationale for specifying std::codecvt not to declare its virtual members pure virtual, and not specifying any implementation either?
Is the intent that they be left dangling to produce link errors, or that dummy implementations (for example, throw an exception in every case) should be added? (What does everyone think of the latter option? Paolo?)
The user should be able to derive from std::codecvt<random,template,arguments> without first specializing it. As is, they must do so, and the specialization must be written from scratch. (GNU provides a class to get around this, but it's a private detail.)
More information about the Libstdc++
mailing list