This forum has been archived. All content is frozen. Please use KDE Discuss instead.

visitor_impl returns value on void function

Tags: None
(comma "," separated)
felicec
Registered Member
Posts
2
Karma
0
Following seems to be a bug in Visitor.h, cannot return value on void function

template<typename Visitor, typename Derived>
struct visitor_impl<Visitor, Derived, 1>
{
inline static void run(const Derived &mat, Visitor& visitor)
{
return visitor.init(mat.coeff(0, 0), 0, 0);
}
};
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
visitor.init() returns void, so that's perfectly correct c++.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]