------- Comment #3 from rguenth at gcc dot gnu dot org 2010-05-19 14:10 ------- template <typename Ordinal> struct DirectSerializationTraits { static void fromCountToDirectBytes(const Ordinal count) {} }; template<typename Ordinal> class SerializationTraits : public DirectSerializationTraits<Ordinal> { }; template <typename Ordinal> class ConstValueTypeSerializationBuffer { public: ConstValueTypeSerializationBuffer(const Ordinal count) { typedef SerializationTraits<Ordinal> SerT; SerT::fromCountToDirectBytes(count); } }; int main () { ConstValueTypeSerializationBuffer<int> charSendBuffer(1); }
-- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2010-05-19 13:59:35 |2010-05-19 14:10:32 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44196