#include <iostream>
#include <boost/scoped_ptr.hpp>
using namespace std;
int main(int argc, char *argv[]) {
    boost::scoped_ptr<int> i(new int);
    *i = 2;
    
    cout << *i << endl;
    return 0;
}
 
 相关文章
                            相关文章