Hi I've created a class to be used with stl vector. I'm having a hard time decipher the error message outpout by g++... - burlen@quaoar:~/hdf52vtk_dev/src$ g++ junk.cpp GridPoint.o
-
/usr/include/c++/3.3.3/bits/stl_algo.h: In function `_RandomAccessIter
-
std::find(_RandomAccessIter, _RandomAccessIter, const _Tp&,
-
std::random_access_iterator_tag) [with _RandomAccessIter =
-
__gnu_cxx::__normal_iterator<GridPoint*, std::vector<GridPoint,
-
std::allocator<GridPoint> > >, _Tp = GridPoint*]':
-
/usr/include/c++/3.3.3/bits/stl_algo.h:298: instantiated from `_InputIter std::find(_InputIter, _InputIter, const _Tp&) [with _InputIter = __gnu_cxx::__normal_iterator<GridPoint*, std::vector<GridPoint, std::allocator<GridPoint> > >, _Tp = GridPoint*]'
-
junk.cpp:47: instantiated from here
-
/usr/include/c++/3.3.3/bits/stl_algo.h:208: error: no match for 'operator==' in
-
'(&__first)->__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*
-
[with _Iterator = GridPoint*, _Container = std::vector<GridPoint,
-
std::allocator<GridPoint> >]() == __val'
-
GridPoint.h:46: error: candidates are: bool GridPoint::operator==(const
-
GridPoint&) const
-
/usr/include/c++/3.3.3/bits/stl_algo.h:211: error: no match for 'operator==' in
-
'(&__first)->__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*
-
[with _Iterator = GridPoint*, _Container = std::vector<GridPoint,
-
std::allocator<GridPoint> >]() == __val'
-
GridPoint.h:46: error: candidates are: bool GridPoint::operator==(const
-
GridPoint&) const
-
/usr/include/c++/3.3.3/bits/stl_algo.h:214: error: no match for 'operator==' in
-
'(&__first)->__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*
-
[with _Iterator = GridPoint*, _Container = std::vector<GridPoint,
-
std::allocator<GridPoint> >]() == __val'
-
GridPoint.h:46: error: candidates are: bool GridPoint::operator==(const
-
GridPoint&) const
-
/usr/include/c++/3.3.3/bits/stl_algo.h:217: error: no match for 'operator==' in
-
'(&__first)->__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*
-
[with _Iterator = GridPoint*, _Container = std::vector<GridPoint,
-
std::allocator<GridPoint> >]() == __val'
-
GridPoint.h:46: error: candidates are: bool GridPoint::operator==(const
-
GridPoint&) const
-
/usr/include/c++/3.3.3/bits/stl_algo.h:223: error: no match for 'operator==' in
-
'(&__first)->__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*
-
[with _Iterator = GridPoint*, _Container = std::vector<GridPoint,
-
std::allocator<GridPoint> >]() == __val'
-
GridPoint.h:46: error: candidates are: bool GridPoint::operator==(const
-
GridPoint&) const
-
/usr/include/c++/3.3.3/bits/stl_algo.h:226: error: no match for 'operator==' in
-
'(&__first)->__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*
-
[with _Iterator = GridPoint*, _Container = std::vector<GridPoint,
-
std::allocator<GridPoint> >]() == __val'
-
GridPoint.h:46: error: candidates are: bool GridPoint::operator==(const
-
GridPoint&) const
-
/usr/include/c++/3.3.3/bits/stl_algo.h:229: error: no match for 'operator==' in
-
'(&__first)->__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*
-
[with _Iterator = GridPoint*, _Container = std::vector<GridPoint,
-
std::allocator<GridPoint> >]() == __val'
-
GridPoint.h:46: error: candidates are: bool GridPoint::operator==(const
-
GridPoint&)
in my class I have defined it like this:
bool GridPoint::operator== ( const GridPoint &rhs ) const;
can you help me figure what the error messages mean?
0 6107 Sign in to post your reply or Sign up for a free account.
Similar topics
by: Giulio |
last post by:
I'm doing a class who takes in constructor a vector<int> keeps and makes
some statistic on the vector whitout modifiing it.
I would like not to make a copy of the vector for the class. to let the...
|
by: Nomak |
last post by:
Hello,
With this code:
$ cat -n ifs.cc
1 #include <vector>
2 #include <iostream>
3
4 using std::vector;
5 using std::cin;
|
by: tehn.yit.chin |
last post by:
I am trying to experiment <algorithm>'s find to search for an item in a
vector of struct. My bit of test code is shown below.
#include <iostream>
#include <vector>
#include <algorithm>...
|
by: imutate |
last post by:
How do I implement << ala std::cout for vector template ?
I already have the following:
#include <vector>
template < typename T >
class Vec : public std::vector< T {
public:
Vec() { }
Vec(...
|
by: sandy |
last post by:
I am trying to make a simulated directory structure application for a
course.
I am using a Vector to store pointers to my Directory objects (as
subdirectories of the current object).
In my...
|
by: lovecreatesbea... |
last post by:
The find() in <algorithmrequires two input iterators as its first and
second arguments. In some of my code, I use vector<T>::begin() and
vector<T>::end() as the first and second arguments. The...
|
by: PaperPilot |
last post by:
While trying to copy data into the vector
I get the following error messages:
stl_algobase.h:247: error: no match for 'operator*' in '*__result'
stl_algobase.h:249: error: no match for...
|
by: jeremit0 |
last post by:
I'm trying to sort a vector<complex<double and can't figure it
out. I recognize the problem is that there isn't a default operator<
for complex data types. I have written my own operator and can...
|
by: orangemonkey |
last post by:
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main (void) {
int sv = 0, fv = 0;
cout << "Start Value:" << endl;
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |