DBUS C++ bindings?

Aristid Breitkreuz aribrei at arcor.de
Sun Feb 26 10:28:52 PST 2006


Am Sonntag, den 26.02.2006, 15:54 +0100 schrieb P. Durante:
> http://svn.berlios.de/viewcvs/bluetool/trunk/lib/cbus/include/cbus/cbusmessage.h?view=markup

Here you have the following code:
MessageIter MessageIter::operator ++()
{
  MessageIter copy(*this);
  (*this)++;
  return copy;
}
MessageIter& MessageIter::operator ++(int)
{
  dbus_message_iter_next(&_iter);
  return (*this);
}

Which is if I'm reading it correctly the wrong way round. operator
++(int) is the postfix version and operator++() ist the prefix version.
It is very uncommon for a prefix version to be at least as postfix as
the postfix version. Or is this intentional?

I like the idea of simply wrapping the DBusMessage concept though.



More information about the dbus mailing list