Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FUNCTION SIGNATURES:
- EuclideanVector(const int dimensions, const int magnitude);
- EuclideanVector(const unsigned int dimensions, const double magnitude);
- LINE CAUSING COMPILATION ERROR:
- EuclideanVector c{1, 2.5};
- COMPILE ERROR MESSAGE:
- EuclideanVectorTester.cpp: In function 'int main()':
- EuclideanVectorTester.cpp:14:34: error: call of overloaded 'EuclideanVector(<bra
- ce-enclosed initializer list>)' is ambiguous
- cs6771::EuclideanVector c{1, 2.5};
- ^
- EuclideanVectorTester.cpp:14:34: note: candidates are:
- In file included from EuclideanVectorTester.cpp:3:0:
- EuclideanVector.h:26:3: note: cs6771::EuclideanVector::EuclideanVector(unsigned
- int, double)
- EuclideanVector(const unsigned int dimensions, const double magnitude);
- ^
- EuclideanVector.h:24:12: note: cs6771::EuclideanVector::EuclideanVector(int, int
- )
- explicit EuclideanVector(const int dimensions, const int magnitude);
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement