Skip to content

Commit

Permalink
Removed explicit template instantiation hack. Breaks with current bui…
Browse files Browse the repository at this point in the history
…ld under Ubuntu 12.04, everything works without it.
  • Loading branch information
Ulrich von Zadow committed Oct 10, 2017
1 parent c3464a7 commit b319217
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 67 deletions.
47 changes: 0 additions & 47 deletions src/player/Arg.cpp

This file was deleted.

19 changes: 0 additions & 19 deletions src/player/Arg.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,6 @@ ArgBase* Arg<T>::createCopy() const
return new Arg<T>(*this);
}

#ifdef AVG_PLUGIN
#ifdef __linux__
// Under Linux, templates used by plugins need to be instantiated explicitly if
// RTTI is needed. Templates instantiated implicitly get instantiated again in the
// plugin with a different typeid.
extern template class Arg<int>;
extern template class Arg<bool>;
extern template class Arg<float>;
extern template class Arg<std::string>;
extern template class Arg<glm::vec2>;
extern template class Arg<glm::vec3>;
extern template class Arg<glm::ivec3>;
extern template class Arg<std::vector<float> >;
extern template class Arg<std::vector<int> >;
extern template class Arg<std::vector<glm::vec2> >;
extern template class Arg<std::vector<glm::ivec2> >;
#endif
#endif

}

#endif
Expand Down
2 changes: 1 addition & 1 deletion src/player/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
add_library(player
Arg.cpp AreaNode.cpp RasterNode.cpp DivNode.cpp VideoNode.cpp ExportedObject.cpp
AreaNode.cpp RasterNode.cpp DivNode.cpp VideoNode.cpp ExportedObject.cpp
Player.cpp PluginManager.cpp TypeRegistry.cpp ArgBase.cpp ArgList.cpp
DisplayEngine.cpp Canvas.cpp CanvasNode.cpp OffscreenCanvasNode.cpp
MainCanvas.cpp Node.cpp MultitouchInputDevice.cpp WrapPython.cpp
Expand Down

0 comments on commit b319217

Please sign in to comment.