¡@

Home 

c++ Programming Glossary: if_init

How to have template type deduced in std::function arguments with lambda?

http://stackoverflow.com/questions/14784441/how-to-have-template-type-deduced-in-stdfunction-arguments-with-lambda

up this function template typename T typename Variant void if_init Variant opt_variant std function void T functor if auto ptr.. like the type T to be deduced so that I can write that if_init b double var std cout I'm double and set std endl But the type.. 19 5 error no matching function for call to 'if_init' if_init b double var std cout I'm double and set std endl ^~~~~~~..