Skip to content
  • Kenneth Moreland's avatar
    delete operator and std::allocator are not necessarily the same · bc3e1ebd
    Kenneth Moreland authored
    The unit test for StorageBasic tested the StealArray feature and then
    used the delete[] operator on the stolen array to deallocate it. For
    many standard libraries the default implementation for delete[] is
    the same as (or at least compatible with) std::allocator, but for
    the PGI compiler they were not compatible and this resulted in a
    run-time error. This change fixes the problem with the test by using
    the same allocator as the StorageBasic test.
    bc3e1ebd