Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-05-22 00:14:34


Author: steven_watanabe
Date: 2008-05-22 00:14:33 EDT (Thu, 22 May 2008)
New Revision: 45636
URL: http://svn.boost.org/trac/boost/changeset/45636

Log:
Added missing inlines and added a test for this problem
Added:
   sandbox/units/libs/units/test_headers/main.cpp (contents, props changed)
Text files modified:
   sandbox/units/boost/units/systems/si/surface_tension.hpp | 2 +-
   sandbox/units/boost/units/systems/si/torque.hpp | 2 +-
   sandbox/units/libs/units/test_headers/Jamfile.v2 | 2 +-
   3 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/units/boost/units/systems/si/surface_tension.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/surface_tension.hpp (original)
+++ sandbox/units/boost/units/systems/si/surface_tension.hpp 2008-05-22 00:14:33 EDT (Thu, 22 May 2008)
@@ -30,7 +30,7 @@
 
 } // namespace si
 
-std::ostream& operator<<(std::ostream& os, const boost::units::si::surface_tension&)
+inline std::ostream& operator<<(std::ostream& os, const boost::units::si::surface_tension&)
 {
     return(os << "N/m");
 }

Modified: sandbox/units/boost/units/systems/si/torque.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/torque.hpp (original)
+++ sandbox/units/boost/units/systems/si/torque.hpp 2008-05-22 00:14:33 EDT (Thu, 22 May 2008)
@@ -30,7 +30,7 @@
 
 } // namespace si
 
-std::ostream& operator<<(std::ostream& os, const boost::units::si::torque&)
+inline std::ostream& operator<<(std::ostream& os, const boost::units::si::torque&)
 {
     return(os << "N m");
 }

Modified: sandbox/units/libs/units/test_headers/Jamfile.v2
==============================================================================
--- sandbox/units/libs/units/test_headers/Jamfile.v2 (original)
+++ sandbox/units/libs/units/test_headers/Jamfile.v2 2008-05-22 00:14:33 EDT (Thu, 22 May 2008)
@@ -39,5 +39,5 @@
 test-suite units_headers :
   $(tests)
 # this ought to catch non-inlined functions and other duplicate definitions
- [ link include_all1 include_all2 : <include>. : include_all_headers ]
+ [ link include_all1 include_all2 main.cpp : <include>. : include_all_headers ]
   ;

Added: sandbox/units/libs/units/test_headers/main.cpp
==============================================================================
--- (empty file)
+++ sandbox/units/libs/units/test_headers/main.cpp 2008-05-22 00:14:33 EDT (Thu, 22 May 2008)
@@ -0,0 +1,2 @@
+int main() {
+}


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