mardi 25 août 2015

How to make a function object using bind()

Here is the code

uniform_int_distribution<>::param_type p;
auto r = bind(uniform_int_distribution<>{p}, default_random_engine{});

I get an error: "non-static data member declared 'auto'". Can anyone tell me what's wrong?

Aucun commentaire:

Enregistrer un commentaire