Commit 08c5a20a authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Correction of a bug if the compiler is compatible with c++11, the

ptr.h file was missing the definition of the dynamic_pointer_cast function
for the ptr wrapper.
parent 7384664e
......@@ -23,6 +23,11 @@
#include <memory>
template<class T> using ptr = std::shared_ptr<T>;
template<class T, class U>
inline ptr<U> dynamic_pointer_cast(const ptr<T>& ptr_t) {
return std::dynamic_pointer_cast<U>(ptr_t);
}
#else
/* Define a counter class. This class should not be used by any other part of
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment