AW: [gtkmm] struct ustring::SequenceToString<In,char> : public st d::string



You missunderstood me.

std::string is a final class (or at leased it is indented to be a final
class),
but the template ustring::SequenceToString<In,char> is derived from it
(std::string), 
but nothing should be derived from std::string.

I am trying to solve Bug http://bugzilla.gnome.org/show_bug.cgi?id=78578
which is very important to be solved for our project.

Harald

############################################################################
#####
template <class In>
struct ustring::SequenceToString<In,char> : public std::string
{
  SequenceToString(In pbegin, In pend);
};

template <class In>
struct ustring::SequenceToString<In,gunichar> : public std::string
{
  SequenceToString(In pbegin, In pend);
};

template <>
struct ustring::SequenceToString<Glib::ustring::iterator,gunichar> : public
std::string
{
  SequenceToString(Glib::ustring::iterator pbegin, Glib::ustring::iterator
pend);
};

template <>
struct ustring::SequenceToString<Glib::ustring::const_iterator,gunichar> :
public std::string
{
  SequenceToString(Glib::ustring::const_iterator pbegin,
Glib::ustring::const_iterator pend);
};
############################################################################
#####



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]