FIxing one more issue with compilation on ubuntu regarding the template functions specializationand the namespace

This commit is contained in:
Sam Gateau 2015-05-26 11:40:35 -07:00
parent dd9d758da1
commit ad0b0cfade

View file

@ -3169,11 +3169,14 @@ public:
}; };
template <> const render::ItemKey render::payloadGetKey(const MyFirstStuff::Pointer& stuff) { return ItemKey::Builder::opaqueShape(); } // For Ubuntu, the compiler want's the Payload's functions to be specialized in the "render" namespace explicitely...
template <> const render::Item::Bound render::payloadGetBound(const MyFirstStuff::Pointer& stuff) { return Item::Bound(); } namespace render {
template <> void render::payloadRender(const MyFirstStuff::Pointer& stuff, RenderArgs* args) { template <> const ItemKey payloadGetKey(const MyFirstStuff::Pointer& stuff) { return ItemKey::Builder::opaqueShape(); }
if (args) { template <> const Item::Bound payloadGetBound(const MyFirstStuff::Pointer& stuff) { return Item::Bound(); }
args->_elementsTouched ++; template <> void payloadRender(const MyFirstStuff::Pointer& stuff, RenderArgs* args) {
if (args) {
args->_elementsTouched ++;
}
} }
} }