Modify

Ticket #1451 (closed Bugs: fixed)

Opened 6 years ago

Last modified 4 years ago

error: use of C99 long long integer constant

Reported by: Jens Seidel <jensseidel@…> Owned by: johnmaddock
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

Change History

comment:1 Changed 6 years ago by johnmaddock

  • Status changed from new to assigned

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 5 years ago by johnmaddock

  • Status changed from assigned to closed
  • Resolution set to fixed

(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 5 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 4 years ago by anonymous

  • Status changed from closed to reopened
  • Resolution fixed deleted

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

  • Cc mateusz@… added

comment:6 Changed 4 years ago by johnmaddock

  • Status changed from reopened to closed
  • Resolution set to fixed

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

comment:7 Changed 4 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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.