osx const error fix

This commit is contained in:
Daniel Sipka 2015-10-12 10:29:26 +02:00
parent b6a9b480f1
commit b94f538793

View File

@ -27,7 +27,7 @@ using namespace mstchtest;
if(test.count("partials")) \ if(test.count("partials")) \
for(auto& partial_item: get<mstch::map>(test["partials"])) \ for(auto& partial_item: get<mstch::map>(test["partials"])) \
partials.insert(std::make_pair(partial_item.first, get<std::string>(partial_item.second))); \ partials.insert(std::make_pair(partial_item.first, get<std::string>(partial_item.second))); \
for(auto& data_item: get<mstch::map>(test["data"])) \ for(std::pair<const std::string,mstch::node>& data_item: get<mstch::map>(test["data"])) \
if(data_item.first == "lambda") \ if(data_item.first == "lambda") \
data_item.second = specs_lambdas[get<std::string>(test["name"])]; \ data_item.second = specs_lambdas[get<std::string>(test["name"])]; \
SECTION(get<std::string>(test["name"])) \ SECTION(get<std::string>(test["name"])) \