Always initialize pmem::obj::array using double braces.
Using single braces initialization is allowed by the standard (C++11 §8.5.1/11), however older versions of gcc (up-to 5.5.0) do not properly elide braces and emit error in this case.
parent
032899ca
Please register or sign in to comment