Open greole opened 4 years ago
Interesting! I think maybe making macros that take a variadic number of arguments at the end might work -- that way, we can provide the extra "typename I" in your example, or "std::size_t N" in some other case. Those would get passe through. PR welcome; otherwise, I may take a while to get to this -- I'm readying another library for including into Boost.
@tzlaine Ok I'll see if I can't implement it myself and do a PR.
First, thanks for creating yap! I am trying to extend the lazy_vector example to create a
lazy_vector<T>
version. This would need another template parameter for thelazy_vector_expr
struct, likeHowever, this doesn't work with the provided macros
BOOST_YAP_USER_BINARY_OPERATOR
. Does it mean i should implement a different version ofBOOST_YAP_USER_BINARY_OPERATOR
? What is the best way to achieve this?