Subject: [Boost-bugs] [Boost C++ Libraries] #2251: Bad comment, I think
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-08-24 20:13:54
#2251: Bad comment, I think
--------------------------+-------------------------------------------------
Reporter: dave | Owner: niels_dekker
Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: utility
Version: Boost 1.36.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
{{{
// - swap_impl has a using-directive, rather than a using-
declaration,
// because some compilers (including MSVC 7.1, Borland 5.9.3, and
// Intel 8.1) don't do argument-dependent lookup when it has a
// using-declaration instead.
}}}
IIUC, this isn't because of a peculiarity of any compiler: the standard
says that ADL operates on names brought in to associated namespaces
through using-declarations, but not on those visible by using-directives.
A using-declaration is a declaration, while a using-directive is not :-)
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2251> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC