Opened 9 years ago

Last modified 9 years ago

#8504 new Bugs

BOOST_PHOENIX_LIMIT can only be set to a multiple of 10

Reported by: Mathieu Champlon <m.champlon@…> Owned by: Thomas Heller
Milestone: To Be Determined Component: phoenix
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Hi,

This ticket is a follow-up to #7165.

The following code fails to compile

#define BOOST_PHOENIX_LIMIT 9
#include <boost/phoenix.hpp>

It also fails for 11 or any number different from 10, 20, 30, etc... but bear in mind that this error is largely hidden by #7165 : only after applying it does it become visible for numbers greater than 10.

All in all it looks like the BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) logic in boost/phoenix/core/limits.hpp is partly flawed.

I'll try and investigate !

Thanks,

MAT.

Change History (1)

comment:1 by John Fletcher <J.P.Fletcher@…>, 9 years ago

I have now fixed 7165 and 7166 using your patches and they are out for testing on develop. I assume that this still needs fixing. If you have any information please let me know. John

Note: See TracTickets for help on using tickets.