History

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

Sam Gateau committed 11 years ago

Commit ad0b0cf1 parent dd9d7581 file · +8 −5Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+8−5
@@ -3169,11 +3169,14 @@ public: · 3168 unmodified lines
3169 3169
3170};3170};
3171 3171
3172template <> const render::ItemKey render::payloadGetKey(const MyFirstStuff::Pointer& stuff) { return ItemKey::Builder::opaqueShape(); }3172// For Ubuntu, the compiler want's the Payload's functions to be specialized in the "render" namespace explicitely...
3173template <> const render::Item::Bound render::payloadGetBound(const MyFirstStuff::Pointer& stuff) { return Item::Bound(); }3173namespace render {
3174template <> void render::payloadRender(const MyFirstStuff::Pointer& stuff, RenderArgs* args) {3174 template <> const ItemKey payloadGetKey(const MyFirstStuff::Pointer& stuff) { return ItemKey::Builder::opaqueShape(); }
3175 if (args) {3175 template <> const Item::Bound payloadGetBound(const MyFirstStuff::Pointer& stuff) { return Item::Bound(); }
3176 args->_elementsTouched ++;3176 template <> void payloadRender(const MyFirstStuff::Pointer& stuff, RenderArgs* args) {
3177 if (args) {
3178 args->_elementsTouched ++;
3179 }
3177 }3180 }
3178}3181}
3179 3182

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t