Is there a possibility to make it somehow,
I need to return const bool[dimension1][dimension2];
I tried - template classes, pointers, and the other things, some that break the C++ standards, but no working solution.
Thank you if you have any ideas.
This is a discussion on Returning const array? within the C++ Programming forums, part of the General Programming Boards category; Is there a possibility to make it somehow, I need to return const bool[dimension1][dimension2]; I tried - template classes, pointers, ...
Is there a possibility to make it somehow,
I need to return const bool[dimension1][dimension2];
I tried - template classes, pointers, and the other things, some that break the C++ standards, but no working solution.
Thank you if you have any ideas.
The best way is to pass the array into the function and modify it from there.
Alternatively, use std::Tr1::array. Since it's an object, you can return it.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^