aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-01-05 18:21:44 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-01-05 18:21:44 +0000
commit85515054365e62c757cc5395619f73652c4556fa (patch)
tree22ed411b03d04ec34f8df514cfba5afc59c229a7 /Eigen/src/Core/util
parent1b8804288050f92dd6da3ff98c9ecece5953d717 (diff)
problem solved, we really want public inheritance and it is only
automatic when the _child_ class is a struct.
Diffstat (limited to 'Eigen/src/Core/util')
-rw-r--r--Eigen/src/Core/util/Memory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index e4b3bc39c..c8341dae4 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -173,7 +173,7 @@ inline static int ei_alignmentOffset(const Scalar* ptr, int maxOffset)
* overloading the operator new to return aligned data when the vectorization is enabled.
* Here is a similar safe example:
* \code
- * struct Foo : WithAlignedOperatorNew {
+ * struct Foo : public WithAlignedOperatorNew {
* char dummy;
* Vector4f some_vector;
* };
@@ -201,7 +201,7 @@ struct WithAlignedOperatorNew
template<typename T, int SizeAtCompileTime,
bool NeedsToAlign = (SizeAtCompileTime!=Dynamic) && ((sizeof(T)*SizeAtCompileTime)%16==0)>
-struct ei_with_aligned_operator_new : WithAlignedOperatorNew {};
+struct ei_with_aligned_operator_new : public WithAlignedOperatorNew {};
template<typename T, int SizeAtCompileTime>
struct ei_with_aligned_operator_new<T,SizeAtCompileTime,false> {};