Closed dacap closed 8 years ago
We could use a std::unique_ptr
instead of std::auto_ptr
, or even better, a std::vector
.
Great, thanks for testing this with MSVC. std::auto_ptr is deprecated if I'm not mistaken, but unique_ptr would work fine. Can use unique_ptr since vector would initialise the elements, and new [] would not I think.
There are other changes needed to support MSVC completely. But I'll create other PRs for that. I'll push/overwrite/fix the commit in this PR with a std::unique_ptr
.
Arrays of variable length aren't supported by MSVC compiler.