| 177 | } // namespace |
| 178 | |
| 179 | FieldGeneratorPtr FieldBinary::clone(const list<FieldGeneratorPtr> args) { |
| 180 | if (args.size() != 2) { |
| 181 | throw ParseException("Binary operator expecting 2 arguments. Got {{}}", args.size()); |
| 182 | } |
| 183 | |
| 184 | return std::make_shared<FieldBinary>(args.front(), args.back(), op); |
| 185 | } |
| 186 | |
| 187 | /// Convert a real value to a Boolean |
| 188 | /// Throw exception if `rval` isn't close to 0 or 1 |
no test coverage detected