On Sunday, 30 June 2019 at 17:24:03 UTC, Robert M. Münch wrote:
I have a case, with templates, where an assert in a unittest can access a private memember and I don't know how this can happen.

Before trying to creat an equivalent case, I want to cross-check, if assert has special semantics in a unittest so that it can access private memembers?

Private means that only members of the enclosing class can access the member, or
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
members and functions in the same module as the enclosing class.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
did you take it into account?

Reply via email to