mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Move 'last' and 'end' to their own namespace
This commit is contained in:
parent
1df2377d78
commit
acd08900c9
@ -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
|
||||
//--------------------------------------------------------------------------------
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user