Hi all,
I'm porting some software to 64bit linux from 32bit windows. Some of our code uses stlsoft::fixed_array_2d, but compilation fails.
I have made this simple test-case to show the problem:
#include <stlsoft/containers/fixed_array.hpp>
int main()
{
typedef stlsoft::fixed_array_2d<double> FixedArray;
typedef FixedArray::dimension_element_type Array1d;
FixedArray array(42,42);
const Array1d dim = array.at_unchecked(2);
}
And get a following compile error.
Looking at the code:
#ifdef STLSOFT_MULTIDIM_ARRAY_FEATURE_REQUIRES_COPY_CTOR_WITH_RVO
#else /* ? STLSOFT_MULTIDIM_ARRAY_FEATURE_REQUIRES_COPY_CTOR_WITH_RVO */
#endif /* STLSOFT_MULTIDIM_ARRAY_FEATURE_REQUIRES_COPY_CTOR_WITH_RVO */
Then why does one implementation use
if(R) { ... }
and the other not?
kind regards
-Thorsten