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

Find better way of having opaque std::unique_ptr<T> in an exported class ? #10768

Open
rouault opened this issue Sep 11, 2024 · 0 comments
Open
Labels
code enhancements Code enhancements (generally developer-only visible)

Comments

@rouault
Copy link
Member

rouault commented Sep 11, 2024

This is related to #10762

Having something like the following in a public header

class CPL_DLL Foo
{
   private:
          class Bar;
          std::unique_ptr<Bar> opaque{};
}

prevents such header from being used by external code with Visual Studio

@rouault rouault added the code enhancements Code enhancements (generally developer-only visible) label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code enhancements Code enhancements (generally developer-only visible)
Projects
None yet
Development

No branches or pull requests

1 participant