diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-15 21:49:04 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-15 21:56:58 +0200 |
| commit | ce3287483e396697d9c4b50629b6c4d3581bdec4 (patch) | |
| tree | f7cb421a0b787ea85c19a28efecda455d8c467db /src | |
| parent | 189451e21e0e8603270a9b03adda46e9b9509143 (diff) | |
| download | Project-Tick-ce3287483e396697d9c4b50629b6c4d3581bdec4.tar.gz Project-Tick-ce3287483e396697d9c4b50629b6c4d3581bdec4.zip | |
Need to enforce operator!= too
...come on, it's worth the shorter compilation time
Diffstat (limited to 'src')
| -rw-r--r-- | src/tag_primitive.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tag_primitive.cpp b/src/tag_primitive.cpp index 30a15cc476..7f71098bd6 100644 --- a/src/tag_primitive.cpp +++ b/src/tag_primitive.cpp @@ -74,12 +74,19 @@ bool operator!=(const tag_primitive<T>& lhs, const tag_primitive<T>& rhs) return !(lhs == rhs); } -//Enforce instantiations +//Enforce template instantiations template class tag_primitive<int8_t>; template class tag_primitive<int16_t>; template class tag_primitive<int32_t>; template class tag_primitive<int64_t>; template class tag_primitive<float>; template class tag_primitive<double>; +//Need to also instantiate operator!=, whereas operator== already gets instantiated in crtp_tag +template bool operator!=<int8_t> (const tag_primitive<int8_t>& , const tag_primitive<int8_t>&); +template bool operator!=<int16_t>(const tag_primitive<int16_t>&, const tag_primitive<int16_t>&); +template bool operator!=<int32_t>(const tag_primitive<int32_t>&, const tag_primitive<int32_t>&); +template bool operator!=<int64_t>(const tag_primitive<int64_t>&, const tag_primitive<int64_t>&); +template bool operator!=<float> (const tag_primitive<float>& , const tag_primitive<float>&); +template bool operator!=<double> (const tag_primitive<double>& , const tag_primitive<double>&); } |
