aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Eigen/src/Core/ArithmeticSequence.h4
-rw-r--r--test/indexed_view.cpp3
2 files changed, 7 insertions, 0 deletions
diff --git a/Eigen/src/Core/ArithmeticSequence.h b/Eigen/src/Core/ArithmeticSequence.h
index 6c9cb9ef3..88954b4a6 100644
--- a/Eigen/src/Core/ArithmeticSequence.h
+++ b/Eigen/src/Core/ArithmeticSequence.h
@@ -154,9 +154,13 @@ protected:
struct symb_last_tag {};
+namespace placeholders {
+
static const symbolic_value<symb_last_tag> last;
static const symbolic_add<symbolic_value<symb_last_tag>,symbolic_value_wrapper> end(last+1);
+} // end namespace placeholders
+
//--------------------------------------------------------------------------------
// integral constant
//--------------------------------------------------------------------------------
diff --git a/test/indexed_view.cpp b/test/indexed_view.cpp
index 13eb1ef35..e04fe0cd4 100644
--- a/test/indexed_view.cpp
+++ b/test/indexed_view.cpp
@@ -43,6 +43,9 @@ bool match(const T& xpr, std::string ref, std::string str_xpr = "") {
void check_indexed_view()
{
+ using Eigen::placeholders::last;
+ using Eigen::placeholders::end;
+
Index n = 10;
ArrayXXi A = ArrayXXi::NullaryExpr(n,n, std::ptr_fun(encode));