Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51422 - trunk/boost/spirit/home/phoenix/core
From: joel_at_[hidden]
Date: 2009-02-23 21:20:01


Author: djowel
Date: 2009-02-23 21:20:01 EST (Mon, 23 Feb 2009)
New Revision: 51422
URL: http://svn.boost.org/trac/boost/changeset/51422

Log:
fixed. "nothing" is defined as:
    null_actor const nothing = null_actor();
which doesn't make it an actor, rather an "actor base".

Shouldn't it rather be defined as something like:
    actor<null_actor> const nothing = null_actor();
Text files modified:
   trunk/boost/spirit/home/phoenix/core/nothing.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/spirit/home/phoenix/core/nothing.hpp
==============================================================================
--- trunk/boost/spirit/home/phoenix/core/nothing.hpp (original)
+++ trunk/boost/spirit/home/phoenix/core/nothing.hpp 2009-02-23 21:20:01 EST (Mon, 23 Feb 2009)
@@ -1,7 +1,7 @@
 /*=============================================================================
     Copyright (c) 2001-2007 Joel de Guzman
 
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 ==============================================================================*/
 #ifndef PHOENIX_CORE_NOTHING_HPP
@@ -19,7 +19,7 @@
 // A actor that does nothing (a "bum", if you will :-).
 //
 ///////////////////////////////////////////////////////////////////////////////
- struct null_actor
+ struct null_actor
     {
         typedef mpl::false_ no_nullary;
 
@@ -36,7 +36,7 @@
         }
     };
 
- null_actor const nothing = null_actor();
+ actor<null_actor> const nothing = null_actor();
 }}
 
 #endif


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