ticket #13386 - workaround for some gcc compilers

This commit is contained in:
Barend Gehrels 2018-03-27 21:50:18 +02:00
parent 7bfd8c6ca3
commit 68296965f5
2 changed files with 6 additions and 1 deletions

View File

@ -37,6 +37,7 @@
[*Solved issues]
* [@https://svn.boost.org/trac10/ticket/13386 13386] Workaround for some gcc compilers
* [@https://svn.boost.org/trac10/ticket/13381 13381] Compile error with matrix_transformer in Visual C++ 2015
* [@https://svn.boost.org/trac10/ticket/13436 13436] Incorrectness in boost::geometry::model::polygon documentation

View File

@ -610,7 +610,11 @@ struct buffered_piece_collection
if (multi0 == multi1)
{
const deflate_properties& prop = properties[multi0];
if (! prop.has_inflated && prop.count < 3)
// NOTE: Keep brackets around prop.count
// avoid gcc-bug "parse error in template argument list"
// GCC versions 5.4 and 5.5 (and probably more)
if (! prop.has_inflated && (prop.count) < 3)
{
// Property is not inflated
// Not enough points, this might be caused by <float> where