blob: bc2ddf140d15f2ca7ac2351da38212b552c753a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// { dg-lto-do link }
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);
}
|