From 8d506948615de1de5d8a1510a1d1b82de3738cfa Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Tue, 28 Jul 2015 20:11:55 +0200 Subject: Meh, we do need to instantiate operator== after all compiler optimizations... --- src/tag_array.cpp | 4 +++- src/tag_primitive.cpp | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tag_array.cpp b/src/tag_array.cpp index 942d1f5c78..a944899402 100644 --- a/src/tag_array.cpp +++ b/src/tag_array.cpp @@ -111,9 +111,11 @@ bool operator!=(const tag_array& lhs, const tag_array& rhs) return !(lhs == rhs); } -//Enforce template instantiations. Just as for tag_primitive we have to instantiate operator!= +//Enforce template instantiations template class tag_array; template class tag_array; +template bool operator== (const tag_array& , const tag_array&); +template bool operator==(const tag_array&, const tag_array&); template bool operator!= (const tag_array& , const tag_array&); template bool operator!=(const tag_array&, const tag_array&); diff --git a/src/tag_primitive.cpp b/src/tag_primitive.cpp index 27aabcfed5..69bd9695bd 100644 --- a/src/tag_primitive.cpp +++ b/src/tag_primitive.cpp @@ -81,7 +81,12 @@ template class tag_primitive; template class tag_primitive; template class tag_primitive; template class tag_primitive; -//Need to also instantiate operator!=, whereas operator== already gets instantiated in crtp_tag +template bool operator== (const tag_primitive& , const tag_primitive&); +template bool operator==(const tag_primitive&, const tag_primitive&); +template bool operator==(const tag_primitive&, const tag_primitive&); +template bool operator==(const tag_primitive&, const tag_primitive&); +template bool operator== (const tag_primitive& , const tag_primitive&); +template bool operator== (const tag_primitive& , const tag_primitive&); template bool operator!= (const tag_primitive& , const tag_primitive&); template bool operator!=(const tag_primitive&, const tag_primitive&); template bool operator!=(const tag_primitive&, const tag_primitive&); -- cgit 0.0.5-2-1-g0f52