From e943411fd6ecbb9dfdaa4cbcc72deb2b70b606f3 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Thu, 12 Jun 2014 09:38:59 -0400 Subject: [PATCH] Remove Doxygen warnings. --- include/boost/hana/functional.hpp | 6 +++++- include/boost/hana/list.hpp | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/boost/hana/functional.hpp b/include/boost/hana/functional.hpp index 4e9d9ee68..f895bc418 100644 --- a/include/boost/hana/functional.hpp +++ b/include/boost/hana/functional.hpp @@ -177,16 +177,20 @@ namespace boost { namespace hana { ### Example @snippet example/functional/fix.cpp main + + @todo + Find a simpler way to make `f` dependent in `operator()(...)`. */ constexpr struct { + //! @cond template constexpr auto operator()(F f) const { auto fst = [](auto a, ...) { return a; }; - //! @todo Find a simpler way to make `f` dependent. return [=](auto ...xs) { return f((*this)(fst(f, xs...)), xs...); }; } + //! @endcond } fix{}; //! Returns a function invoking `f` with its two first arguments reversed. diff --git a/include/boost/hana/list.hpp b/include/boost/hana/list.hpp index 8aebdcddd..47033fbd1 100644 --- a/include/boost/hana/list.hpp +++ b/include/boost/hana/list.hpp @@ -66,6 +66,7 @@ namespace boost { namespace hana { using hana_datatype = List; struct { + //! @cond template static constexpr auto call(F f, list_detail::type_container) { return f(type...); } @@ -73,6 +74,7 @@ namespace boost { namespace hana { template constexpr auto operator()(F f) const { return call(f, typename HiddenTypeContainer::contents{}); } + //! @endcond } into; }; }