This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71010] error: 'begin' was not declared in this scope
- From: "theubik at mail dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 May 2016 07:12:42 +0000
- Subject: [Bug c++/71010] error: 'begin' was not declared in this scope
- Auto-submitted: auto-generated
- References: <bug-71010-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71010
Ubikovich <theubik at mail dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |FIXED
--- Comment #3 from Ubikovich <theubik at mail dot ru> ---
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?