Boost logo

Boost Users :

From: boost_www (boost_www_at_[hidden])
Date: 2008-07-16 03:01:54


Hello

Sorry, I have several questions on C++ instead of any boost library.
But I believe the boost guys could easily give me help. :-)

1) I found code fragment like this, esp. in macro definitions:

do { \
          \
// ... \
} while(0)

Why is the do/while clause needed here?

2) I found large amount of code like this in a class implementation:

AClass::func()
{
        this->func1();
}

Why is 'this->' needed?

Thanks for any help.

B/Rgds
Max


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