1- Changed LieScalar class so it is derived from "DerivedValues".

2- Added an include guard to Values-inl.h.
release/4.3a0
Can Erdogan 2012-02-29 13:05:54 +00:00
parent 58b64da525
commit 9bcee033fc
2 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,7 @@
#pragma once
#include <gtsam/base/DerivedValue.h>
#include <gtsam/base/Lie.h>
namespace gtsam {
@ -24,7 +25,7 @@ namespace gtsam {
/**
* LieScalar is a wrapper around double to allow it to be a Lie type
*/
struct LieScalar {
struct LieScalar : public DerivedValue<LieScalar> {
/** default constructor */
LieScalar() : d_(0.0) {}

View File

@ -22,6 +22,8 @@
* which is also a manifold element, and hence supports operations dim, retract, and localCoordinates.
*/
#pragma once
#include <utility>
#include <boost/type_traits/conditional.hpp>
#include <boost/type_traits/is_base_of.hpp>