Hi there, I'm a little confused by the documentation of the
multi_array lib. The begin() is supposed to return an iterator, but
dereferencing doesn't resolve into the value type. This makes it a
little complicated to use multi_arrays with standard algorithms.
Please consider the following code snippet which wont compile on VC
7.1.
class tVoxel
{
public:
typedef short tValue;
tVoxel(): _oValue( 0 ) {}
tVoxel(tValue oValue): _oValue( oValue ) {}
void set( const tValue& oValue ) { _oValue = oValue; }
tValue& get() { return _oValue; }
const tValue& get() const { return _oValue; }
private:
tValue _oValue;
};
int _tmain(int argc, _TCHAR* argv[])
{
typedef boost::multi_array