Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70654 - sandbox/opaque/libs/opaque/example
From: vicente.botet_at_[hidden]
Date: 2011-03-27 19:10:30


Author: viboes
Date: 2011-03-27 19:10:29 EDT (Sun, 27 Mar 2011)
New Revision: 70654
URL: http://svn.boost.org/trac/boost/changeset/70654

Log:
Opaque: Adapted to some changes
Text files modified:
   sandbox/opaque/libs/opaque/example/ex2.cpp | 1 +
   sandbox/opaque/libs/opaque/example/ex3.cpp | 5 +++++
   2 files changed, 6 insertions(+), 0 deletions(-)

Modified: sandbox/opaque/libs/opaque/example/ex2.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/example/ex2.cpp (original)
+++ sandbox/opaque/libs/opaque/example/ex2.cpp 2011-03-27 19:10:29 EDT (Sun, 27 Mar 2011)
@@ -17,6 +17,7 @@
 
 
 BOOST_OPAQUE_PRIVATE_TYPEDEF(unsigned,game_score);
+//BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(game_score)
 
 game_score accumulate( game_score g1, game_score g2 ) {
  return g1 + g2;

Modified: sandbox/opaque/libs/opaque/example/ex3.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/example/ex3.cpp (original)
+++ sandbox/opaque/libs/opaque/example/ex3.cpp 2011-03-27 19:10:29 EDT (Sun, 27 Mar 2011)
@@ -28,6 +28,11 @@
 BOOST_OPAQUE_PUBLIC_CLASS(energy,potential_energy);
 BOOST_OPAQUE_PUBLIC_CLASS(energy,heat_energy);
 #endif
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(mass1_leng2_per_time2)
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(energy)
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(kinetic_energy)
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(potential_energy)
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(heat_energy)
 
 void public_multiple_levels_test() {
     energy e;


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