comparing vectors of std::bitsets

S

Sean Farrow

Hi:
Will the defaul vector < operator allow me to compare two vectors of std::
bitsets?
If not how do I get round this?
Cheers
Sean.
 
S

Sean Farrow

Hi:
This is *not* homework. I'm in the process of finishing a comercial project.
How do I overload the [] operator?
Chers
Sean.
 
A

anon

Sean said:
Hi:
This is *not* homework. I'm in the process of finishing a comercial project.
How do I overload the [] operator?
Chers
Sean.
Cheers & hth.,

- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

What an irony :)


Anyway, answers to your question are:
1) STFG
2) http://www.parashift.com/c++-faq-lite/operator-overloading.html
 
J

Juha Nieminen

Sean said:
This is *not* homework. I'm in the process of finishing a comercial project.
How do I overload the [] operator?

Let me get this straight: You are developing a commercial project in
C++ and you don't even know how to overload the [] operator, or whether
you can compare bitsets with operator<?

You know, there are good books about C++ out there. Even free ones
online. Ever heard of this thing called google?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top