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.
Revised 13 Jan, 2005
© Copyright Jonathan Turkanis, 2005. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Sha'arei Tefila, an Orthodox Shul (Synagogue) in Salt Lake City, Utah Chabad Lubavitch of Utah