Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1285

Comment by HolyBlackCat on Multiple namespaces overloaded operator

$
0
0
Using using namespace to import an operator is unreliable, because it brings it to the common enclosing namespace of yours and the one you're importing, which makes it prone to shadowing by other unrelated operators in your namespace. Works fine in the toy examples, but might break in practice. The individual operator has to be using-ed instead.

Viewing all articles
Browse latest Browse all 1285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>