#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?
std::vector has no size member but it has size() member function.
you need to change
one.size;toone.size();