История изменений
Исправление Kuzy, (текущая версия) :
struct A {
std::vector<int> v;
decltype(v) f() const; // std::vector<int>::iterator
auto f() const -> decltype(v); // std::vector<int>::const_iterator
}
Исправление Kuzy, :
struct A {
std::vector<int> v;
decltype(v) f(); // std::vector<int>::iterator
auto f() const -> decltype(v); // std::vector<int>::const_iterator
}
Исходная версия Kuzy, :
struct A {
std::vector<int> v;
decltype(v) f(); // std::vector<int>::iterator
auto f() -> decltype(v); // std::vector<int>::const_iterator
}