logoalt Hacker News

CamperBob2last Saturday at 6:25 PM1 replyview on HN

    for (int i=0; i<nn; i++) {
      distinct(*this, m.row(i), opt.ipl());
      distinct(*this, m.col(i), opt.ipl());
    }
Weird way to use C++, passing *this to everything explicitly, but maybe they have a reason.

Replies

nurettinlast Saturday at 9:07 PM

Qt does this as well. It is a common way of preserving a parent-child relationship.

show 1 reply