Modify

Opened 10 years ago

Closed 8 years ago

Last modified 8 years ago

#1451 closed Bugs (fixed)

error: use of C99 long long integer constant

Reported by: Jens Seidel <jensseidel@…> Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost Development Trunk Severity: Problem
Keywords: Cc: jensseidel@…, mateusz@…

Description

Hi,

Boost.Math uses a lot of long long in C++ code which is invalid. g++ complains using -pedantic: boost/math/special_functions/lanczos.hpp|430 col 11| error: use of C99 long long integer constant

Jens

Attachments (0)

Change History (7)

comment:1 Changed 10 years ago by John Maddock

Status: newassigned

The use of long long is deliberate: I really do need 64-bit integer constants in those cases.

However, I will try and find a workaround - but not for the 1.35 release.

John.

comment:2 Changed 9 years ago by John Maddock

Resolution: fixed
Status: assignedclosed

(In [50403]) Split test_policy_2.cpp into multiple smaller tests. Fix use of long long so that code compiles with g++ -pedantic. Update docs to match. Fixes #1451.

comment:3 Changed 9 years ago by anonymous

Is the bug-fix already incorporated into the stable release?

Because with boost 1.38, I get similar warnings (but in a different header):

[...]/boost_1_38_0/boost/integer_traits.hpp:164:66: warning: use of C99 long long integer constant

[...]/boost_1_38_0/boost/integer_traits.hpp:164:77: warning: use of C99 long long integer constant

[...]/boost_1_38_0/boost/integer_traits.hpp:170:70: warning: use of C99 long long integer constant

[...]/boost_1_38_0/boost/integer_traits.hpp:170:70: warning: use of C99 long long integer constant

Or are the warnings completely unrelated to the error filed here?

comment:4 Changed 8 years ago by anonymous

Resolution: fixed
Status: closedreopened

comment:5 Changed 8 years ago by mloskot <mateusz@…>

Cc: mateusz@… added

comment:6 Changed 8 years ago by John Maddock

Resolution: fixed
Status: reopenedclosed

That's an unrelated issue, but will be fixed in the next release.

comment:7 Changed 8 years ago by anonymous

[...]/boost_1_38_0/boost/integer_traits.hpp:164:66: warning: use of C99 long long integer constant rosetta stone french

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Maddock.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.