You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>prettyprint.hpp(117): error C3313: 'it': variable cannot have the type 'void'
template <typename U>
struct printer
{
static void print_body(const U & c, ostream_type & stream)
{
using std::begin;
using std::end;
auto it = begin(c); //<<< The error is here
const auto the_end = end(c);
if (it != the_end)
{
for ( ; ; )
{
stream << *it;
if (++it == the_end) break;
if (delimiters_type::values.delimiter != NULL)
stream << delimiters_type::values.delimiter;
}
}
}
};
It seems that some Eigen containers are detected as iterable: has_begin_end && has_const_iterator are true, but when using it begin and end function returns a void iterator.
As someone faced the same issue?
Is there a way to check that begin/end should not be void?
The text was updated successfully, but these errors were encountered:
>prettyprint.hpp(117): error C3313: 'it': variable cannot have the type 'void'
It seems that some Eigen containers are detected as iterable:
has_begin_end && has_const_iterator
are true, but when using itbegin
andend
function returns avoid
iterator.As someone faced the same issue?
Is there a way to check that begin/end should not be void?
The text was updated successfully, but these errors were encountered: