const-correctness

Objects declared const cannot be bound to ordinary interface instances; otherwise, a violation of const-correctness would occur when a non-const member function was called. In order to allow the use of interfaces with const objects, Boost.Interfaces provides the interface adapter const_view, which takes an interface as a template parameter and yields an interface which can be bound to const objects and whose non-const functions are disabled. See Example.


Sha'arei Tefila, an Orthodox Shul (Synagogue) in Salt Lake City, Utah Chabad Lubavitch of Utah