Opened 9 years ago

Closed 9 years ago

#48114 closed defect (fixed)

cccc @3.1.4 fails to build

Reported by: schmieder.matthias@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: yosemite, haspatch Cc: kurthindenburg (Kurt Hindenburg)
Port: cccc

Description

Hi, just tried to install cccc an my MacBook Pro with Yosemite installed but it failed. The log output brings up the following error message

./cccc_tbl.cc:99:7: error: use of undeclared identifier 'erase'
    erase(value_iterator);
    ^
    this->

tracing the error down I found a missing scope in said function.

cccc_tbl.cpp:92

template<class T>
bool CCCC_Table<T>::remove(T* old_item_ptr)
{
  bool retval=false; 
  typename map_t::iterator value_iterator=map_t::find(old_item_ptr->key());
  if(value_iterator!=map_t::end())
    {
      erase(value_iterator);
      retval=true;
    }
  return retval;
}

changing cccc_tbl.cpp:99 to

      map_t::erase(value_iterator);

fixed to problem.

I added to log file as well as a patch file to this ticket.

BR Matthias

Attachments (2)

cccc_tbl.cc.patch (360 bytes) - added by schmieder.matthias@… 9 years ago.
patch file
main.log (8.8 KB) - added by schmieder.matthias@… 9 years ago.
log file

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by schmieder.matthias@…

Attachment: cccc_tbl.cc.patch added

patch file

Changed 9 years ago by schmieder.matthias@…

Attachment: main.log added

log file

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mww@… schmieder.matthias@… removed
Keywords: haspatch added; erase Xcode 6.3.2 removed
Owner: changed from macports-tickets@… to mww@…
Priority: HighNormal
Summary: cccc-3.1.4 fails to buildcccc @3.1.4 fails to build

comment:2 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:3 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.