Mark allocation_flag constructor as explicit.
Having implicit constructor caused unexpected beahviour with make_persistent_array. For make_persistent version designed to work with sized arrays calling make_persistent<int[100]>(90) didn't failed as expected. Instead, '90' was implicitly converted to allocation_flag.
parent
05bf223b
Please register or sign in to comment