Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
[C++ Error] _algobase.h(341): E2034 Cannot convert 'const int' to 'MyClass *' |
The following code caused this compile error:
#include <vector> |
IDE: C++ Builder 6.0
Compiler: Borland BCC32.EXE version 6.0.10.157
Project type: Console
The zero denotes that the MyClass pointer is uninitialized. The compiler, however, believes this zero denotes an integer value.
The code where the compiler takes you, in _algobase.h:
template <class _OutputIter, class _Size, class _Tp> |
There are two options:
#include <vector> |
I would bet that the first argument's data type might also be std::size_t.
#include <vector> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.