Re: [Boost-users] Comparing two vectors element by element
Sean Farrow wrote:
Hi Gevorg: In this case it's the second, for more background for interest: Each vector represents a braille cell. A braille cell has 6 dots hence the std::bitset<6> so: A vector can have up to 6 bitsets, each bitset represents one dots state. Hth. Sean.
Ok, what happens when a vector having 4 bitsets is compared with one having 6: - 4 bitsets of the first vector are compared with the first 4 bitsets of the second vector, ignoring last 2 elements? - The first vector is considered the lesser because it has fewer elements? - Is this not allowed? - something else? Best Regards, Gevorg
It's not allower, the sizes aren't identical. Sean. -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Gevorg Voskanyan Sent: 10 September 2008 13:15 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Comparing two vectors element by element Sean Farrow wrote:
Hi Gevorg: In this case it's the second, for more background for interest: Each vector represents a braille cell. A braille cell has 6 dots hence the std::bitset<6> so: A vector can have up to 6 bitsets, each bitset represents one dots state. Hth. Sean.
Ok, what happens when a vector having 4 bitsets is compared with one having 6: - 4 bitsets of the first vector are compared with the first 4 bitsets of the second vector, ignoring last 2 elements? - The first vector is considered the lesser because it has fewer elements? - Is this not allowed? - something else? Best Regards, Gevorg _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users __________ Information from ESET NOD32 Antivirus, version of virus signature database 3431 (20080910) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 3431 (20080910) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
participants (2)
-
Gevorg Voskanyan
-
Sean Farrow