Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. FUNCTION SIGNATURES:
  2.  
  3. EuclideanVector(const int dimensions, const int magnitude);
  4. EuclideanVector(const unsigned int dimensions, const double magnitude);
  5.  
  6. LINE CAUSING COMPILATION ERROR:
  7.  
  8. EuclideanVector c{1, 2.5};
  9.  
  10. COMPILE ERROR MESSAGE:
  11.  
  12. EuclideanVectorTester.cpp: In function 'int main()':
  13. EuclideanVectorTester.cpp:14:34: error: call of overloaded 'EuclideanVector(<bra
  14. ce-enclosed initializer list>)' is ambiguous
  15. cs6771::EuclideanVector c{1, 2.5};
  16. ^
  17. EuclideanVectorTester.cpp:14:34: note: candidates are:
  18. In file included from EuclideanVectorTester.cpp:3:0:
  19. EuclideanVector.h:26:3: note: cs6771::EuclideanVector::EuclideanVector(unsigned
  20. int, double)
  21. EuclideanVector(const unsigned int dimensions, const double magnitude);
  22. ^
  23. EuclideanVector.h:24:12: note: cs6771::EuclideanVector::EuclideanVector(int, int
  24. )
  25. explicit EuclideanVector(const int dimensions, const int magnitude);
  26. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement