Moved C++11 compat code into the icinga namespace.

This commit is contained in:
Gunnar Beutner 2012-05-13 20:47:14 +02:00
parent 38486640fd
commit bec30888f7
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,8 @@
#ifndef CXX11COMPAT_H
#define CXX11COMPAT_H
namespace icinga {
template <typename T>
shared_ptr<T> make_shared(void)
{
@ -38,4 +40,6 @@ shared_ptr<T> make_shared(const TArg1& arg1, const TArg2& arg2)
return shared_ptr<T>(new T(arg1, arg2));
}
}
#endif /* CXX11COMPAT_H */