Can't access vector size
c++, vector
Solution
std::vector has no size member but it has size() member function. you need to change `one.size;` to `one.size();`
Problem
``` #include <vector> using namespace std; int main(){ vector<double> one; one.size; return 0; } ``` . ``` error C3867: 'std::vector<_Ty>::size': function call missing argument list; use '&std::vector<_Ty>::size' to create a pointer to member 1> with 1> [ 1> _Ty=std::vector<double> 1> ] ``` I am using Visual Studio 2012. Any ideas what is causing those errors?