Skip to content

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