c++ Programming Glossary: binary_functor
Boost::spirit::qi defining a calculator for nullaries http://stackoverflow.com/questions/15486531/boostspiritqi-defining-a-calculator-for-nullaries binary operators on nullaries with this macro #define BINARY_FUNCTOR name op struct name name Value x Value y x_ x y_ y double.. boost phoenix typedef std function double Value #define BINARY_FUNCTOR name op struct name name Value x Value y x_ x y_ y double.. x_ x y_ y double operator return x_ op y_ Value x_ y_ BINARY_FUNCTOR ADD BINARY_FUNCTOR SUB BINARY_FUNCTOR MUL BINARY_FUNCTOR DIV..
Boost spirit compile issue http://stackoverflow.com/questions/16778399/boost-spirit-compile-issue boost phoenix typedef boost function double Value #define BINARY_FUNCTOR name op struct name name Value x Value y x_ x y_ y .. x_ x y_ y double operator return x_ op y_ Value x_ y_ BINARY_FUNCTOR ADD BINARY_FUNCTOR SUB BINARY_FUNCTOR MUL BINARY_FUNCTOR DIV.. return x_ op y_ Value x_ y_ BINARY_FUNCTOR ADD BINARY_FUNCTOR SUB BINARY_FUNCTOR MUL BINARY_FUNCTOR DIV struct LIT LIT double..
|