[ create a new paste ] login | about

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

C++, pasted on Mar 26:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <boost/noncopyable.hpp>

class MyClass: boost::noncopyable
{

};

int main()
{
  MyClass m;
  //MyClass n(m);  //no copy constructor
  MyClass p;
  //p = m;         //no assignment operator
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: