Boost logo

Boost Users :

From: Robert Ramey (robert_at_[hidden])
Date: 2006-04-21 14:57:31


I have a problem what is demonstrated in the attached file.

Basically I have the following

create multi_array - a1
create a view on the multiarray which has the same number of dimensions
a1_view
a1 == a1_view fails to compile.

The attached example illustrates this. In the example I verify that
both a1 and a1_view fullfill the requirements for Multi Array. The
documentation
states that in order for a type to be a model of the Multi Array concept.
The
operations

a == b must be valid.

Actually the documentation could be considered ambiguous on this point. But
that is was I get from a plain reading of the document and from a common
sense
interpretation. If two types meeting the requirements of the Multi Array
concept
have the same number of dimensions, I expect to be able to compare them as
this is natural operation to perform and implement.

Robert Ramey

begin 666 test_misc.cpp
M(VEN8VQU9&4@(F)O;W-T+V-O;F-E<'1?8VAE8VLN:'!P(@T*(VEN8VQU9&4@
M(F)O;W-T+VUU;'1I7V%R<F%Y+V-O;F-E<'1?8VAE8VMS+FAP<"(-"B-I;F-L
M=61E(")B;V]S="]M=6QT:5]A<G)A>2YH<' B#0H-"B-P<F%G;6$@=V%R;FEN
M9RAD:7-A8FQE(#H_at_-#DY-BD-"@T*:6YT( T*;6%I;B H*2![#0H)='EP961E
M9B!B;V]S=#HZ;75L=&E?87)R87D\9&]U8FQE+" S/B!A<G)A>5]T>7!E.PT*
M"6%R<F%Y7W1Y<&4_at_83$H8F]O<W0Z.F5X=&5N='-;,UU;-%U;,ETI.PT*"71Y
M<&5D968_at_87)R87E?='EP93HZ:6YD97A?<F%N9V4@<F%N9V4[#0H)87)R87E?
M='EP93HZ87)R87E?=FEE=SPS/CHZ='EP92!A,5]V:65W(#T-"@D)83%;(&)O
M;W-T.CII;F1I8V5S6W)A;F=E*# L,BE=6W)A;F=E*#$L,RE=6W)A;F=E*# L
M-"PR*5T_at_73L-"@T*"6)O;W-T.CIF=6YC=&EO;E]R97%U:7)E<SP-"@D)8F]O
M<W0Z.F1E=&%I;#HZ;75L=&E?87)R87DZ.DUU=&%B;&5-=6QT:4%R<F%Y0V]N
M8V5P=#QA<G)A>5]T>7!E+#,^( T*"3XH*3L-"@EB;V]S=#HZ9G5N8W1I;VY?
M<F5Q=6ER97,\#0H)"6)O;W-T.CID971A:6PZ.FUU;'1I7V%R<F%Y.CI-=71A
M8FQE375L=&E!<G)A>4-O;F-E<'0\87)R87E?='EP93HZ87)R87E?=FEE=SPS
M/CHZ='EP92PS/B -"@D^*"D[#0H-"@ER971U<FX_at_83$@/3T_at_83%?=FEE=SL-
""GT`
`
end


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net