Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable -fext-numeric-literals on compiler #490

Merged
merged 3 commits into from
Jan 24, 2019
Merged

Conversation

gilwoolee
Copy link
Contributor

This PR fixes the build issue in xenial + boost 1.58 + kinetic + dart 6.7.2 of

/usr/include/boost/math/constants/constants.hpp:277:3: error: unable to find numeric literal operator 'operator""Q'

It adds a compiler option.


Before creating a pull request

  • Document new methods and classes
  • Format code with make format

Before merging a pull request

  • Set version target by selecting a milestone on the right side
  • Summarize this change in CHANGELOG.md
  • Add unit test(s) for this change

@gilwoolee gilwoolee requested a review from jslee02 January 24, 2019 08:20
jslee02
jslee02 previously approved these changes Jan 24, 2019
Copy link
Member

@jslee02 jslee02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! One minor suggestion for future reference.

@@ -15,7 +15,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
)
endif()

set(AIKIDO_CXX_STANDARD_FLAGS -std=c++11)
set(AIKIDO_CXX_STANDARD_FLAGS -std=c++11 -fext-numeric-literals)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be useful to comment why we need this. Maybe we can refer to this bug report: https://svn.boost.org/trac10/ticket/9240.

jslee02
jslee02 previously approved these changes Jan 24, 2019
@gilwoolee gilwoolee merged commit 014245f into master Jan 24, 2019
@brianhou brianhou deleted the fext-numeric-literals branch January 24, 2019 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants