Boost logo

Boost-Commit :

From: oryol_at_[hidden]
Date: 2008-05-02 20:57:13


Author: jeremypack
Date: 2008-05-02 20:57:13 EDT (Fri, 02 May 2008)
New Revision: 45051
URL: http://svn.boost.org/trac/boost/changeset/45051

Log:
Real compilers always provide "and" as well as "&&". Not th

Text files modified:
   sandbox/libs/reflection/examples/tutorial_1/hello_world.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/libs/reflection/examples/tutorial_1/hello_world.cpp
==============================================================================
--- sandbox/libs/reflection/examples/tutorial_1/hello_world.cpp (original)
+++ sandbox/libs/reflection/examples/tutorial_1/hello_world.cpp 2008-05-02 20:57:13 EDT (Fri, 02 May 2008)
@@ -27,7 +27,7 @@
   // the call would become r.has_constructor<int>(). If we wanted a function
   // that took two float arguments, and returned a double, the call would be
   // r.has_function<void, float, float>("print hello world").
- if (r.get_constructor().valid() and
+ if (r.get_constructor().valid() &&
       r.get_function<void>("print hello world").valid()) {
 
     // Get and call the constructor to create an instance.


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk