Use traditional pointer instead of unique_prt
Hello,
How can I use a traditional pointer instead of a unique_prt?
|
using BoolArray = std::unique_ptr<bool[]>;
|
I want to use similar this:
|
using *BoolArray = new bool[];
|
Thanks
Last edited on
using BoolArray = bool*;
Why are you attempting to do this?
1 2 3 4 5
|
unsigned theSize;
cin >> theSize;
bool *boolArray = new bool[theSize];
...
delete[] boolArray;
|
Topic archived. No new replies allowed.