Update of /cvsroot/boost/boost/libs/statechart/example/BitMachine
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25637/libs/statechart/example/BitMachine
Modified Files:
BitMachine.cpp UniqueObject.hpp UniqueObjectAllocator.hpp
Log Message:
Added missing std:: prefixes to all usages of size_t.
Index: BitMachine.cpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/statechart/example/BitMachine/BitMachine.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- BitMachine.cpp 10 Feb 2006 20:09:26 -0000 1.28
+++ BitMachine.cpp 20 Nov 2006 18:15:25 -0000 1.29
@@ -1,5 +1,5 @@
//////////////////////////////////////////////////////////////////////////////
-// (c) Copyright Andreas Huber Doenni 2002-2005
+// (c) Copyright Andreas Huber Doenni 2002-2006
// Distributed under the Boost Software License, Version 1.0. (See accompany-
// ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//////////////////////////////////////////////////////////////////////////////
@@ -7,7 +7,7 @@
//////////////////////////////////////////////////////////////////////////////
-#define NO_OF_BITS 5
+#define NO_OF_BITS 3
//////////////////////////////////////////////////////////////////////////////
// This program demonstrates the fact that measures must be taken to hide some
// of the complexity (e.g. in separate .cpp file) of a Boost.Statechart state
@@ -119,12 +119,12 @@
struct BitState : sc::simple_state< BitState< StateNo >, BitMachine >,
UniqueObject< BitState< StateNo > >, IDisplay
{
- void * operator new( size_t size )
+ void * operator new( std::size_t size )
{
return UniqueObject< BitState< StateNo > >::operator new( size );
}
- void operator delete( void * p, size_t size )
+ void operator delete( void * p, std::size_t size )
{
UniqueObject< BitState< StateNo > >::operator delete( p, size );
}
Index: UniqueObject.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/statechart/example/BitMachine/UniqueObject.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- UniqueObject.hpp 10 Feb 2006 20:09:26 -0000 1.7
+++ UniqueObject.hpp 20 Nov 2006 18:15:25 -0000 1.8
@@ -1,7 +1,7 @@
#ifndef BOOST_STATECHART_EXAMPLE_UNIQUE_OBJECT_HPP_INCLUDED
#define BOOST_STATECHART_EXAMPLE_UNIQUE_OBJECT_HPP_INCLUDED
//////////////////////////////////////////////////////////////////////////////
-// (c) Copyright Andreas Huber Doenni 2002-2005
+// (c) Copyright Andreas Huber Doenni 2002-2006
// Distributed under the Boost Software License, Version 1.0. (See accompany-
// ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//////////////////////////////////////////////////////////////////////////////
@@ -20,12 +20,12 @@
{
public:
//////////////////////////////////////////////////////////////////////////
- void * operator new( size_t size )
+ void * operator new( std::size_t size )
{
return UniqueObjectAllocator< Derived >::allocate( size );
}
- void operator delete( void * p, size_t size )
+ void operator delete( void * p, std::size_t size )
{
UniqueObjectAllocator< Derived >::deallocate( p, size );
}
Index: UniqueObjectAllocator.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/statechart/example/BitMachine/UniqueObjectAllocator.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- UniqueObjectAllocator.hpp 1 Sep 2005 10:47:58 -0000 1.10
+++ UniqueObjectAllocator.hpp 20 Nov 2006 18:15:25 -0000 1.11
@@ -1,7 +1,7 @@
#ifndef BOOST_STATECHART_EXAMPLE_UNIQUE_OBJECT_ALLOCATOR_HPP_INCLUDED
#define BOOST_STATECHART_EXAMPLE_UNIQUE_OBJECT_ALLOCATOR_HPP_INCLUDED
//////////////////////////////////////////////////////////////////////////////
-// (c) Copyright Andreas Huber Doenni 2002-2005
+// (c) Copyright Andreas Huber Doenni 2002-2006
// Distributed under the Boost Software License, Version 1.0. (See accompany-
// ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +37,7 @@
{
public:
//////////////////////////////////////////////////////////////////////////
- static void * allocate( size_t size )
+ static void * allocate( std::size_t size )
{
boost::statechart::detail::avoid_unused_warning( size );
BOOST_ASSERT( !constructed_ && ( size == sizeof( T ) ) );
@@ -45,7 +45,7 @@
return &storage_.data_[ 0 ];
}
- static void deallocate( void * p, size_t size )
+ static void deallocate( void * p, std::size_t size )
{
boost::statechart::detail::avoid_unused_warning( p );
boost::statechart::detail::avoid_unused_warning( size );
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs