Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCMonthCalCtrl Pin
Paulraj G6-Jul-08 20:58
Paulraj G6-Jul-08 20:58 
AnswerRe: CMonthCalCtrl Pin
Cedric Moonen6-Jul-08 21:32
Cedric Moonen6-Jul-08 21:32 
AnswerRe: CMonthCalCtrl Pin
CPallini6-Jul-08 21:37
mveCPallini6-Jul-08 21:37 
GeneralRe: CMonthCalCtrl [modified] Pin
Paulraj G6-Jul-08 21:47
Paulraj G6-Jul-08 21:47 
GeneralYou're welcome. Pin
CPallini6-Jul-08 21:53
mveCPallini6-Jul-08 21:53 
GeneralRe: CMonthCalCtrl Pin
CPallini6-Jul-08 22:20
mveCPallini6-Jul-08 22:20 
GeneralRe: CMonthCalCtrl Pin
Paulraj G6-Jul-08 23:06
Paulraj G6-Jul-08 23:06 
QuestionCan't figure out this error... Pin
AndreFratelli6-Jul-08 20:18
AndreFratelli6-Jul-08 20:18 
Hi
I'm having the following error message when compiling a project with VS2005

e:\projects\netsim\netsim\grafo.cpp(66) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::_Vector_const_iterator<_Ty,_Alloc>' (or there is no acceptable conversion)
        with
        [
            _Ty=Ligacao *,
            _Alloc=std::allocator<Ligacao *>
        ]
        c:\program files (x86)\microsoft visual studio 8\vc\include\vector(392): could be 'std::_Vector_iterator<_Ty,_Alloc> &std::_Vector_iterator<_Ty,_Alloc>::operator =(const std::_Vector_iterator<_Ty,_Alloc> &)'
        with
        [
            _Ty=Ligacao *,
            _Alloc=std::allocator<Ligacao *>
        ]
        while trying to match the argument list '(std::_Vector_iterator<_Ty,_Alloc>, std::_Vector_const_iterator<_Ty,_Alloc> )'
        with
        [
            _Ty=Ligacao *,
            _Alloc=std::allocator<Ligacao *>
        ]


The code is:

std::vector<Ligacao *>::iterator it;

for (it=this->_m_graf_map[_onde].begin() ; it != this->_m_graf_map[_onde].end() ; it++)
{
    if (
        ((*it)->esquerda()->id() == _esq && (*it)->direita()->id() == _dir) ||
        ((*it)->esquerda()->id() == _dir && (*it)->direita()->id() == _esq)
    ) return true;
}


Where _m_graf_map is defined as:

std::vector<std::vector<Ligacao *> >	_m_graf_map;


Does anybody know what am I doing wrong?

Fratelli
AnswerRe: Can't figure out this error... Pin
Naveen6-Jul-08 20:36
Naveen6-Jul-08 20:36 
GeneralRe: Can't figure out this error... Pin
AndreFratelli6-Jul-08 20:49
AndreFratelli6-Jul-08 20:49 
GeneralRe: Can't figure out this error... Pin
BadKarma6-Jul-08 20:57
BadKarma6-Jul-08 20:57 
GeneralRe: Can't figure out this error... Pin
AndreFratelli6-Jul-08 21:11
AndreFratelli6-Jul-08 21:11 
GeneralRe: Can't figure out this error... Pin
BadKarma6-Jul-08 21:41
BadKarma6-Jul-08 21:41 
GeneralRe: Can't figure out this error... Pin
AndreFratelli6-Jul-08 22:28
AndreFratelli6-Jul-08 22:28 
GeneralRe: Can't figure out this error... Pin
BadKarma6-Jul-08 22:40
BadKarma6-Jul-08 22:40 
GeneralRe: Can't figure out this error... Pin
AndreFratelli6-Jul-08 22:58
AndreFratelli6-Jul-08 22:58 
GeneralRe: Can't figure out this error... Pin
BadKarma6-Jul-08 23:18
BadKarma6-Jul-08 23:18 
GeneralRe: Can't figure out this error... Pin
AndreFratelli6-Jul-08 23:21
AndreFratelli6-Jul-08 23:21 
GeneralRe: Can't figure out this error... Pin
BadKarma6-Jul-08 23:25
BadKarma6-Jul-08 23:25 
AnswerRe: Can't figure out this error... Pin
Nibu babu thomas6-Jul-08 20:53
Nibu babu thomas6-Jul-08 20:53 
GeneralRe: Can't figure out this error... Pin
AndreFratelli6-Jul-08 21:17
AndreFratelli6-Jul-08 21:17 
GeneralRe: Can't figure out this error... Pin
Nibu babu thomas6-Jul-08 21:40
Nibu babu thomas6-Jul-08 21:40 
GeneralRe: Can't figure out this error... Pin
AndreFratelli6-Jul-08 22:23
AndreFratelli6-Jul-08 22:23 
GeneralRe: Can't figure out this error... Pin
Nibu babu thomas6-Jul-08 22:26
Nibu babu thomas6-Jul-08 22:26 
QuestionC++ Classes (problem with events) Pin
marcio k6-Jul-08 20:10
marcio k6-Jul-08 20:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.