workaround c++11 compile error due to ambiguous std::vector::insert usage - closes #1973
This commit is contained in:
parent
dd5bb6c643
commit
13343eb5be
2 changed files with 6 additions and 3 deletions
|
@ -194,13 +194,16 @@ struct ListNodeWrap: formatting::list_node, wrapper<formatting::list_node>
|
|||
ListNodeWrap(object l) : formatting::list_node(), wrapper<formatting::list_node>()
|
||||
{
|
||||
stl_input_iterator<formatting::node_ptr> begin(l), end;
|
||||
children_.insert(children_.end(), begin, end);
|
||||
while (begin != end)
|
||||
{
|
||||
children_.push_back(*begin);
|
||||
++begin;
|
||||
}
|
||||
}
|
||||
|
||||
/* TODO: Add constructor taking variable number of arguments.
|
||||
http://wiki.python.org/moin/boost.python/HowTo#A.22Raw.22_function */
|
||||
|
||||
|
||||
virtual void apply(char_properties const& p, feature_impl const& feature, processed_text &output) const
|
||||
{
|
||||
if(override o = this->get_override("apply"))
|
||||
|
|
|
@ -104,6 +104,6 @@ for format_tree in format_trees:
|
|||
expected = os.path.join(dirname,"images", 'python-%s-reference.png' % format_tree[0])
|
||||
mapnik.render_to_file(m, actual, 'png8:m=h')
|
||||
diff = compare(actual,expected)
|
||||
if diff > 1:
|
||||
if diff > 0:
|
||||
print 'comparision failed between:\n %s (actual)\n %s (expected)' % (actual,expected)
|
||||
|
||||
|
|
Loading…
Reference in a new issue