0
有沒有辦法在運行時聲明確定爲運行時的功能boost::accumulator_set
? 類似於:在運行時初始化boost :: accumulator_set
accumulator_set *acc;
if (SomeUserInput1)
{
acc = new accumulator_set< double, features<tag::min>>;
}
if (SomeUserInput2)
{
acc = new accumulator_set< double, features< tag::min, tag::max, tag::mean, tag::... >>;
}