This is the same answer given on the linked question:
So there is a way to accomplish this using std::integral_constant
:
const int thirteen = 13;
auto refWrap = bind( &std::integral_constant< int, thirteen >::operator int, std::integral_constant< int, thirteen >() );
This does solve the question, but for all intents and purposes is inferior to the lambda:
const int thirteen = 13;
auto refWrap = [=](){ return thirteen; };