your overloading the int operator. Thanks, Tyler Littlefield email: [EMAIL PROTECTED] web: tysdomain-com Visit for quality software and web design. skype: st8amnd2005
----- Original Message ----- From: Jos Timanta Tarigan To: [email protected] Sent: Saturday, October 18, 2008 7:51 AM Subject: [c-prog] operator int() Hi, I got a question. I have a class B that has this method: operator int() { std::cout << "int()" << std::endl; return i; } I dont know exactly how it works but every time I call this method: int foo1(B b) { return b; } it prints int(). Any1 know? Thanks in advance. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed]
