2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 05:02:17 +00:00
Files
python/example/noncopyable.h
Ralf W. Grosse-Kunstleve dd0e42cf72 temp files before branching
[SVN r9457]
2001-03-06 02:44:32 +00:00

15 lines
266 B
C++

#ifndef NONCOPYABLE_H
#define NONCOPYABLE_H
class store
{
private:
store(const store&) { } // Disable the copy constructor.
int number;
public:
store(const int i) : number(i) { }
int recall() const { return number; }
};
#endif // NONCOPYABLE_H