2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-19 14:32:11 +00:00

Remove Doxygen warnings.

This commit is contained in:
Louis Dionne
2014-06-12 09:38:59 -04:00
parent ed9d70d8bf
commit e943411fd6
2 changed files with 7 additions and 1 deletions

View File

@@ -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 <typename F>
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.

View File

@@ -66,6 +66,7 @@ namespace boost { namespace hana {
using hana_datatype = List;
struct {
//! @cond
template <typename F, typename ...Xs>
static constexpr auto call(F f, list_detail::type_container<Xs...>)
{ return f(type<Xs>...); }
@@ -73,6 +74,7 @@ namespace boost { namespace hana {
template <typename F>
constexpr auto operator()(F f) const
{ return call(f, typename HiddenTypeContainer::contents{}); }
//! @endcond
} into;
};
}