Posts by usernameiwantedwasalreadytaken • 171 points
3 posts
-
1
votes1
answer76
viewsA: Implementing function of type Month
Your code has two problems that are generating these errors: 1) Conversion between integers and enumerations On line 62 you are trying to convert a value dt.month (which is integer type) for a value…
-
2
votes1
answer40
viewsA: Google test compare vector C++
As far as I know, Googletest does not have a single function/macro to compare vectors. But in documentation of them has an example of how to do this: ASSERT_EQ(x.size(), y.size()) << "Vectors…
-
1
votes1
answer37
viewsA: Create type using a structure class, and use the same type within the class
I don’t know if I understand your question, but you could do something like: struct ast { class VARIABLE { public: double value; }; template<typename T> class ASSIGNOP { public: T *left; T…
c++answered usernameiwantedwasalreadytaken 171