Skip to content

config: allow user to override BOOST_ASIO_DECL#462

Open
jcelerier wants to merge 1 commit intoboostorg:developfrom
jcelerier:develop
Open

config: allow user to override BOOST_ASIO_DECL#462
jcelerier wants to merge 1 commit intoboostorg:developfrom
jcelerier:develop

Conversation

@jcelerier
Copy link

@jcelerier jcelerier commented Dec 13, 2025

Currently, BOOST_ASIO_DECL is set by the library, with the logic:

  • Header-only => inline
  • Not header-only =>
    Win32?
    => dllexport / dllimport.

In some cases it is important to have more control over this.
For instance:

  • To be able to set visibility attributes under ELF platform
  • To be able to disable visibility under DLL platform.

etc.

Currently, BOOST_ASIO_DECL is set by the library, with the logic:
- Header-only => inline
- Not header-only =>
	Win32?
		=> dllexport / dllimport.

In some cases it is important to have more control over this.
For instance:
 - To be able to set visibility attributes under ELF platform
 - To be able to disable visibility under DLL platform.

etc.
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