1>c:usersrandondocumentsvisual studio 2010projectscollectablestorecollectablestorecustomer.cpp(24): error C2440: 'initializing' : cannot convert from 'Transaction *const ' to 'std::_Deque_iterator<_Ty,_Alloc>'
1> with
1> [
1> _Ty=Transaction *,
1> _Alloc=std::allocator<Transaction *>
1> ]
1> No constructor could take the source type, or constructor overload resolution was ambiguous
damn, I was messing with it too much and forgot about that. I am still getting a similar error.
changed
history.front()
to
history.begin()
and now the error message is:
1>c:usersrandondocumentsvisual studio 2010projectscollectablestorecollectablestorecustomer.cpp(24): error C2440: 'initializing' : cannot convert from 'std::_Deque_const_iterator<_Ty,_Alloc>' to 'std::_Deque_iterator<_Ty,_Alloc>'
1> with
1> [
1> _Ty=Transaction *,
1> _Alloc=std::allocator<Transaction *>
1> ]
1> No constructor could take the source type, or constructor overload resolution was ambiguous
I was playing around with it and I suddenly realized it could possibly matter that my deque was declared in the .h, which it seems to, because when I add it to the .cpp next to the print statement it works. now how do I fix it where it works being declared in the .h?