This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
codecvt as an abstract base class
- From: David Krauss <potswa at mac dot com>
- To: Jerry Schwarz <jerry at acm dot org>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 28 Sep 2010 18:31:35 -0500
- Subject: codecvt as an abstract base class
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.)