Making friends...

release/4.3a0
dellaert 2014-11-25 11:02:54 +01:00
parent e0248c3ca7
commit 07e5475b6b
1 changed files with 9 additions and 0 deletions

View File

@ -27,8 +27,13 @@
#include <boost/range/adaptor/map.hpp> #include <boost/range/adaptor/map.hpp>
#include <boost/range/algorithm.hpp> #include <boost/range/algorithm.hpp>
class ExpressionFactorShallowTest;
namespace gtsam { namespace gtsam {
// Forward declare
template<typename T> class ExpressionFactor;
/** /**
* Expression class that supports automatic differentiation * Expression class that supports automatic differentiation
*/ */
@ -204,6 +209,10 @@ private:
return value; return value;
} }
// be very selective on who can access these private methods:
friend class ExpressionFactor<T>;
friend class ::ExpressionFactorShallowTest;
}; };
// http://stackoverflow.com/questions/16260445/boost-bind-to-operator // http://stackoverflow.com/questions/16260445/boost-bind-to-operator