| 226 | -> clock_type::duration; |
| 227 | |
| 228 | any_impl( |
| 229 | string_view base_name, |
| 230 | string_view flavor, |
| 231 | bool is_boost, |
| 232 | bool is_pool, |
| 233 | parse_options const& popts) |
| 234 | : popts_(popts) |
| 235 | { |
| 236 | std::string extra; |
| 237 | switch( popts_.numbers ) |
| 238 | { |
| 239 | case number_precision::precise: |
| 240 | extra = "precise numbers"; |
| 241 | break; |
| 242 | case number_precision::none: |
| 243 | extra = "no numbers"; |
| 244 | break; |
| 245 | default: |
| 246 | break; |
| 247 | } |
| 248 | |
| 249 | if( is_pool ) |
| 250 | { |
| 251 | if( !extra.empty() ) |
| 252 | extra = '+' + extra; |
| 253 | extra = "pool" + extra; |
| 254 | } |
| 255 | |
| 256 | if( !flavor.empty() ) |
| 257 | { |
| 258 | if( !extra.empty() ) |
| 259 | extra = '+' + extra; |
| 260 | extra.insert( extra.begin(), flavor.begin(), flavor.end() ); |
| 261 | } |
| 262 | |
| 263 | if( !extra.empty() ) |
| 264 | extra = " (" + extra + ')'; |
| 265 | |
| 266 | if( is_boost && !s_branch.empty() ) |
| 267 | extra += ' ' + s_branch; |
| 268 | |
| 269 | name_ = base_name; |
| 270 | name_ += extra; |
| 271 | } |
| 272 | |
| 273 | virtual ~any_impl() = default; |
| 274 | |