GNOME Bugzilla – Bug 709526
C++ parsing problem with operators <<, <, >, >> inside templates
Last modified: 2013-12-24 18:59:54 UTC
Here is an example of a problem with the parsing of C++ default template parameters that implies operators <<, <, > and >>: ---------------------------------------------------------------- #include <iostream> #include <type_traits> template <class Type, class = typename std::enable_if<!std::is_void<decltype(std::declval<std::ostream&>()<<std::declval<Type>())>::value>::type> bool print(std::ostream& stream, const Type& value) { return stream<<value; } int main(int argc, char* argv[]) { print(std::cout, 42); return 0; } ---------------------------------------------------------------- It seems that these operators are interpreted as template delimiters causing a parsing problem.
Confirmed. Should be fixed in the next GIT update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.6. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferrably in the form of a self-contained example).