
13 Mar
2010
13 Mar
'10
6 a.m.
AMDG Cuneyt Taskiran wrote:
The interprocess document gives the prototype for `construct()` as
MyType *ptr = managed_memory_segment.construct<MyType>("Name") (par1, par2...); but when I try
MyVector *myvector = segment.construct<MyVector>("MyVector")(100, alloc_inst); I get compilation errors.
This is because vector doesn't have such a constructor. Try (100, 0, alloc_inst) In Christ, Steven Watanabe