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

Fix build on Embarcadero C++Builder 10.3 #210

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tanzislam
Copy link

@tanzislam tanzislam commented Mar 3, 2019

Double braces aren't necessary for list-initialization after a '=' sign.

In Embarcadero C++Builder 10.3 (bcc32c) that syntax fails to compile. Change to single braces.

Also allow BOOST_ASIO_HAS_HANDLER_HOOKS to be enabled on the modern Clang-based C++Builder compilers.

Double braces aren't necessary for list-initialization after a '=' sign.
  - https://en.cppreference.com/w/cpp/container/array#Example
  - https://www.boost.org/doc/libs/1_69_0/doc/html/array/rationale.html

In Embarcadero C++Builder 10.3 (`bcc32c`) that syntax fails to compile.
Change to single braces.

Also allow `BOOST_ASIO_HAS_HANDLER_HOOKS` to be enabled on the modern
[Clang-based](http://docwiki.embarcadero.com/RADStudio/Rio/en/Win32_Clang-enhanced_Compilers)
C++Builder compilers.
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.

1 participant