cppalliance / safe-cpp

Boost Software License 1.0
153 stars 13 forks source link

Open design question: friend interfaces from classes #6

Open seanbaxter opened 2 months ago

seanbaxter commented 2 months ago

Can we change

  1. The visibility of an interface using name lookup into the impl type
  2. Access-specifiers so that an interface method definition can use private/protected declarations of the impl type.

I have previous work on using-impl-declaration that brings an impl into the current scope for the purpose of name lookup. No previous work on access-specifiers.