This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71010] error: 'begin' was not declared in this scope


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]