template <typename T, typename TArg1>
shared_ptr<T> make_shared(const TArg1& arg1)
{
- return shared_ptr<T>(new T());
+ return shared_ptr<T>(new T(arg1));
}
template <typename T, typename TArg1, typename TArg2>
shared_ptr<T> make_shared(const TArg1& arg1, const TArg2& arg2)
{
- return shared_ptr<T>(new T());
+ return shared_ptr<T>(new T(arg1, arg2));
}
#endif /* CXX11COMPAT_H */
icinga_CXXFLAGS = -I${top_srcdir}/base \
-I${top_srcdir}/jsonrpc -I${top_srcdir}
-icinga_LDFLAGS = $(top_builddir)/base/libbase.la \
- $(top_builddir)/jsonrpc/libjsonrpc.la
\ No newline at end of file
+icinga_LDFLAGS = $(top_builddir)/jsonrpc/libjsonrpc.la \
+ $(top_builddir)/base/libbase.la
\ No newline at end of file
#ifdef _WIN32
path = object->GetName() + ".dll";
#else /* _WIN32 */
- path = "lib" + ea->Object->GetName() + ".la";
+ path = "lib" + object->GetName() + ".la";
#endif /* _WIN32 */
// TODO: try to figure out where the component is located */