cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Auto specifier
Auto specifier
Feb 20, 2014 at 6:10pm UTC
Alby94
(63)
Why cannot deduce the type?
1
2
vector <
int
> vec;
auto
Itr = vec.iterator ();
Source code:
http://www.cprogramming.com/c++11/c++11-auto-decltype-return-value-after-function.html
Last edited on
Feb 20, 2014 at 6:11pm UTC
Feb 20, 2014 at 6:18pm UTC
firedraco
(6243)
auto
Itr = vec.iterator ();
This line is incorrect; I think he meant
vec.begin();
Feb 20, 2014 at 6:30pm UTC
Alby94
(63)
The method iterator() of vector's template do not exists..
Last edited on
Feb 20, 2014 at 6:30pm UTC
Topic archived. No new replies allowed.