Boost C++ Libraries: Ticket #10513: Use operator | and |= for set addition if | and |= are called https://svn.boost.org/trac10/ticket/10513 <p> As mentioned in the document (<a href="http://www.boost.org/doc/libs/1_56_0/libs/icl/doc/html/boost_icl/function_reference/addition.html">http://www.boost.org/doc/libs/1_56_0/libs/icl/doc/html/boost_icl/function_reference/addition.html</a>), a set union semantics is often attached operators |= and |. This is the case, for example, when using boost::dynamic_bitset, which does not provide operators += and + for set union semantics. </p> <p> However, the original implementation of operators |= and | still uses += and + for the underlying set container. This makes operators |= and | less useful. Furthermore, we can't use boost::dynamic_bitset for icl objects currently. I think this is an unnecessary limitation. </p> <p> To make the code more consistent with the statement above, a proper fix would be changing += and + into |= and | when users call the |= and | operators. </p> <p> The patch is on: <a class="ext-link" href="https://github.com/boostorg/icl/pull/4"><span class="icon">​</span>https://github.com/boostorg/icl/pull/4</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10513 Trac 1.4.3