lundi 24 avril 2017

How to pass in parameters in C++?

I debug this program that declared with three params, but actually passed in two, is it allowed or maybe it didn't call it directly?

ConfigList filter(
        const BidRequest& br,
        const ExchangeConnector* conn,
        const ConfigSet& mask = ConfigSet(true));

Here is the calling: auto biddableConfigs = filters.filter(*auction->request, exchangeConnector);

I tried to print out something inside the filter, it printed out one line and one name, not two lines before it.

What is wrong?

Thanks, Oneofkind

Aucun commentaire:

Enregistrer un commentaire