boost/libs/metaparse/doc/getting_started_17.qbk
2018-01-12 21:47:58 +01:00

7 lines
283 B
Plaintext

[#getting_started_17]
template <class L, char Op, class R> struct eval_binary_op;
template <class L, class R> struct eval_binary_op<L, '+', R> : boost::mpl::plus<L, R>::type {};
template <class L, class R> struct eval_binary_op<L, '-', R> : boost::mpl::minus<L, R>::type {};