cpp binding: make operator == and != const. thanks to Riot for this patch. ticket #230

This commit is contained in:
rbencina 2015-01-20 05:10:17 +00:00
commit 83056ee196
6 changed files with 12 additions and 12 deletions

View file

@ -44,12 +44,12 @@ namespace portaudio
// -----------------------------------------------------------------------------------
bool System::DeviceIterator::operator==(const System::DeviceIterator &rhs)
bool System::DeviceIterator::operator==(const System::DeviceIterator &rhs) const
{
return (ptr_ == rhs.ptr_);
}
bool System::DeviceIterator::operator!=(const System::DeviceIterator &rhs)
bool System::DeviceIterator::operator!=(const System::DeviceIterator &rhs) const
{
return !(*this == rhs);
}