[ create a new paste ] login | about

Link: http://codepad.org/ivr7NQAk    [ raw code | output | fork ]

C++, pasted on Apr 25:
1
2
3
4
5
#include <boost/shared_ptr.hpp>
using boost::shared_ptr;
struct Hoge;
void funcRef(shared_ptr<Hoge>& ref = shared_ptr<Hoge>()) {}
int main() {}


Output:
1
2
Line 4: error: default argument for 'boost::shared_ptr<Hoge>& ref' has type 'boost::shared_ptr<Hoge>'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: