[Bug c++/71010] error: 'begin' was not declared in this scope
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 4 03:07:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71010
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Ubikovich from comment #3)
> But since C++14 cbegin invoke std::begin:
>
> // http://en.cppreference.com/w/cpp/iterator/begin
> template< class C >
> constexpr auto cbegin( const C& c ) -> decltype(std::begin(c));
> (3) (since C++14)
>
> Then in what namespace should be user-defined begin/end?
In the same as the class so ADR (argument dependent resolution) can find it.
More information about the Gcc-bugs
mailing list