Just a little helper to make populating predicate_map slightly less gross.
| 18 | |
| 19 | // Just a little helper to make populating predicate_map slightly less gross. |
| 20 | static std::function < status_t( const oracle_t *, const std::string & ) > |
| 21 | make_function( status_t ( character_oracle_t::* fun )( const std::string & ) const ) |
| 22 | { |
| 23 | return static_cast<status_t ( oracle_t::* )( const std::string & ) const>( fun ); |
| 24 | } |
| 25 | |
| 26 | static std::function < status_t( const oracle_t *, const std::string & ) > |
| 27 | make_function( status_t ( monster_oracle_t::* fun )( const std::string & ) const ) |
no test coverage detected