GCC-4.7 Compilation error
问题 When I add the last line from this snippet to my program code: typedef std::set<Job> JobSet; typedef boost::shared_ptr<JobSet> JobSetPtr; JobSetPtr jobs_; jobs_->insert ( job ); // line 60 I get this error: g++-4.7 -o /home/kron/Software/Synchronizer/1.0/Main.o -c src/Main.cpp In file included from /usr/include/c++/4.7/string:50:0, from /usr/include/c++/4.7/bits/locale_classes.h:42, from /usr/include/c++/4.7/bits/ios_base.h:43, from /usr/include/c++/4.7/ios:43, from /usr/include/c++/4.7