[MOAB-dev] r5408 - MOAB/trunk/itaps/imesh

jvporter at wisc.edu jvporter at wisc.edu
Mon Feb 20 11:50:58 CST 2012


Author: jvporter
Date: 2012-02-20 11:50:58 -0600 (Mon, 20 Feb 2012)
New Revision: 5408

Modified:
   MOAB/trunk/itaps/imesh/MBIter.hpp
Log:
Inline the step_iterator functions to fix builds (and they should only get called from one place anyway)


Modified: MOAB/trunk/itaps/imesh/MBIter.hpp
===================================================================
--- MOAB/trunk/itaps/imesh/MBIter.hpp	2012-02-17 23:50:17 UTC (rev 5407)
+++ MOAB/trunk/itaps/imesh/MBIter.hpp	2012-02-20 17:50:58 UTC (rev 5408)
@@ -58,6 +58,7 @@
 // for random-access iterators (vectors and Ranges) so that they perform better.
 
 template <typename T>
+inline
 ErrorCode step_iterator(T &curr, const T &end, int num_steps, bool &at_end) 
 {
   if (0 > num_steps) return MB_FAILURE;
@@ -71,6 +72,7 @@
 }
 
 template <typename T>
+inline
 ErrorCode step_iterator(typename std::vector<T>::const_iterator &curr,
                         const typename std::vector<T>::const_iterator &end,
                         int num_steps, bool &at_end) 
@@ -87,6 +89,7 @@
   return MB_SUCCESS;
 }
 
+inline
 ErrorCode step_iterator(Range::const_iterator &curr, 
                         const Range::const_iterator &end, int num_steps,
                         bool &at_end) 

























More information about the moab-dev mailing list