I have a class Foo that can be constructed from C-style strings, string views and non-temporary strings (in reality it contains other members and meth ...
I have a class Foo that can be constructed from C-style strings, string views and non-temporary strings (in reality it contains other members and meth ...
On the one hand, the function boost::hana::is_valid is presented as follows Checks whether a SFINAE-friendly expression is valid. Given a SFINAE ...
Boost.Hana offers boost::hana::is_valid to check whether a SFINAE-friendly expression is valid. You can use it like this struct Person { std::st ...
Say I have the following struct: I would like to obtain the number of fields in the struct using boost-hana. How to get the number of fields in ...
I'm trying to filter a hana::tuple_t, which from my understanding is just a hana::tuple of hana::type objects. I looked at some code from the example ...
This function, fed with any int, returns a std::vector<int> by value: auto make = [](int){ return std::vector<int>{1,2,3}; }; There ...
tl;dr I'd like to understand what's wrong with the first code below, i.e. what the error is telling me. MRE I've been able to shorten the example t ...
I am using compile time features of boost::hana::string for generating xaml markup strings for a GUI. I am using VS2017 configured as C++17 language, ...
I am trying to get a boost::hana::string by order as inserted in tuple looking by std::string_view name in an array (please check code, it is easier t ...
I am developing a GUI based on mfc. One of the controls allows a markup languge (XAML) to render text and icons inside it, so I am doing an intensive ...
At the doc page of boost::hana::always I read that always(x) is a function such that for any y.... This makes me think that it shouldn't b ...
The type hana::optional represents an Optional value whose optional-ness is known at compile-time and it models, among others, the concept of M ...
Foreword I asked a similar question: say I have a predicate auto p1 = [](int x){ return x > 2; } and a predicate auto p2 = [](int x){ return x < ...
One of the many examples of two macros being used to open and close a namespace respectively is in /usr/include/boost/hana/transform.hpp: BOOST_HANA_ ...
I have the following implementation of an AST, built using C++17's std::variant type, on which I would like to apply a visitor recursively. I have don ...
I want to chain/compose multiple lambdas to a new lambda. When calling the new lambda with parameters it should call the original lambdas with these p ...
I use the boost::hana to_map function to remove duplicates from boost::hana tuple of types. See it at the compiler explorer. The code works very well ...
My objective is to have a something like the following while writing the string "hello" as a regular string. I can have a function make a field of ...
This is mostly a curiosity question. I saw code like this (I'm not interested in what it does) constexpr auto xxx = boost::hana::overload( [](So ...
Does Boost Hana provide a way to combine predicates with logical operators? I'm referring to something roughly like this constexpr auto both = [](au ...