Boost::Interprocess - using variadic template args with managed_shared_memory::construct()
Hi,
I'm trying to write a wrapper over some of boost::interprocess and I want
to have a function like this:
template
El 28/04/2014 12:49, james escribió:
Hi,
I'm trying to write a wrapper over some of boost::interprocess and I want to have a function like this:
template
T* Wrapper::createStruct(const std::string& name, Args&&... args) { return m_shm->construct<T>(name.c_str())(std::forward<Args>(args)...); }
I can't see why the arguments are not forwarded. Could you elaborate a compilable little test case to reproduce the problem? Best, Ion
participants (2)
-
Ion Gaztañaga
-
james