STIR
6.2.0
|
a templated class used to check if it's a 1D array or not This class only exists to allow a work-around for older compilers (such as VC 6.0) that do not implement partial ordering of function templates or partial template specialisation. More...
#include "stir/detail/test_if_1d.h"
a templated class used to check if it's a 1D array or not This class only exists to allow a work-around for older compilers (such as VC 6.0) that do not implement partial ordering of function templates or partial template specialisation.
For modern compilers one can write
The work-around is as follows
So, the same effect is achieved by having one extra function. Of course, the name f_help
is arbitrary, and could just as well be f
. However, it's best to hide these away from the user, as they should never be used explicitly.