BOOST_AUTOで参照

BoostML - Multi Index with BOOST_AUTO question

#include <iostream>
#include <boost/typeof/typeof.hpp>

int main()
{
    int a = 10;
    BOOST_AUTO(&b, a); // int &b = a;

    b = 11;

    std::cout << a << std::endl; // 11
}