Opened 11 years ago

Closed 6 years ago

#6665 closed Bugs (fixed)

not-unary phoenix stl cmath adapted functions not working

Reported by: alfredo.correa@… Owned by: Thomas Heller
Milestone: Component: phoenix
Version: Boost 1.48.0 Severity: Problem
Keywords: boost phoenix stl cmath pow Cc: alfredo.correa@…

Description

boost::phoenix::pow (and other binary functions) doesn't work as expected. This is because there is a typo in phoenix/stl/cmath.hpp

The appropriate line should read:

namespace phoenix { \ BOOST_PHOENIX_ADAPT_CALLABLE(name, phoenix_impl::name ## _impl, n) \ }

with "n" not "1" (as currently) (revision 77276.)

I will attach the modified file.

Attachments (1)

cmath.hpp (3.0 KB ) - added by alfredo.correa@… 11 years ago.
corrected file

Download all attachments as: .zip

Change History (4)

by alfredo.correa@…, 11 years ago

Attachment: cmath.hpp added

corrected file

comment:1 by alfredo.correa@…, 11 years ago

Component: Nonephoenix
Owner: set to Thomas Heller
Summary: small typo in phoenix.stlnot-unary phoenix stl cmath adapted functions not working

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

Fix applied as suggested and new test cmath run to check operation.

comment:3 by Kohei Takahashi, 6 years ago

Milestone: To Be Determined
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.