| 424 | #else |
| 425 | template<typename Modifiers> |
| 426 | enum_parameter( cstring name, Modifiers const& m ) |
| 427 | #endif |
| 428 | : base( name, m ) |
| 429 | { |
| 430 | #ifdef BOOST_TEST_CLA_NEW_API |
| 431 | auto const& values = m[enum_values<EnumType>::value]; |
| 432 | auto it = values.begin(); |
| 433 | #else |
| 434 | std::vector<std::pair<cstring, EnumType> > const& values = m[enum_values<EnumType>::value]; |
| 435 | typename std::vector<std::pair<cstring, EnumType> >::const_iterator it = values.begin(); |
| 436 | #endif |
| 437 | while( it != values.end() ) { |
| 438 | m_valid_names.push_back( it->first ); |
| 439 | ++it; |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | private: |
| 444 | basic_param_ptr clone() const BOOST_OVERRIDE |