Skip to content
GitLab
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • libeigenlibeigen
  • eigeneigen
  • Issues
  • #1774

std::cbegin() returns non-const iterator

Submitted by James Beach

Assigned to Nobody

Link to original bugzilla bug (#1774)
Version: 3.4 (development)

Description

As an example:

using Op = Eigen::VectorwiseOp<Eigen::Array<int, -1, -1, 0, -1, -1>, 0>;  
      
using T = Op::const_iterator; // subvector_stl_iterator<const ...>  
using U = decltype(std::declval<const Op&>().cbegin()); // subvector_stl_iterator<const ...>  
using V = decltype(std::cbegin(std::declval<const Op&>())); // subvector_stl_iterator<...>  

V should be the same as T, but isn't.

Blocking

#814 (closed)

Edited Dec 05, 2019 by Eigen Bugzilla
Assignee
Assign to
Time tracking