This commit is contained in:
Daniel Sipka 2015-04-10 13:21:16 +02:00
parent b38a107b46
commit 311aed9e10
3 changed files with 2 additions and 4 deletions

View file

@ -32,8 +32,7 @@ std::string visitor::render_section::operator()(const std::string& str) const {
std::string visitor::render_section::operator()(const array& arr) const {
std::ostringstream out;
for (auto& item: arr)
if (!boost::apply_visitor(visitor::is_node_empty(), item))
out << boost::apply_visitor(*this, item);
out << boost::apply_visitor(*this, item);
return out.str();
}

View file

@ -39,7 +39,6 @@ int main(int argc, char* argv[]) {
("namespace", po::value<std::string>(), "namespace to use")
("input-string,S", po::value<std::vector<std::string>>(), "files to parse as strings")
("input-data,D", po::value<std::vector<std::string>>(), "files to parse as data");
po::variables_map vm;
po::store(po::parse_command_line(argc, argv, desc), vm);
po::notify(vm);

View file

@ -42,4 +42,4 @@ MSTCH_TEST("String as context", mstchtest::string_as_context)
MSTCH_TEST("Two in a row", mstchtest::two_in_a_row)
MSTCH_TEST("Two sections", mstchtest::two_sections)
MSTCH_TEST("Whitespace", mstchtest::whitespace)
//MSTCH_TEST("Zero view", mstchtest::zero_view)
MSTCH_TEST("Zero view", mstchtest::zero_view)