728x90
반응형
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DB.h | |
// source from leveldb of code.google | |
class DB | |
{ | |
public: | |
DB() { } | |
virtual ~DB() {} | |
private: // No copying allowed | |
DB(const DB&) {} | |
void operator=(const DB&) {} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UseDB.cpp | |
#include "DB.h" | |
DB db1, db2; | |
db1 = db2; // error | |
DB db3(db1); // error |
728x90
반응형
'C C++' 카테고리의 다른 글
Determining 32 vs 64 bit in C++ (0) | 2017.09.07 |
---|---|
함수의 인자를 const로 사용 (0) | 2014.12.07 |
boost asio tcp block server (0) | 2014.02.18 |
C/C++ 오류 발생 전처리기 #error (0) | 2013.03.06 |
Creating and using Sprite Sheets in Cocos2D-X with Texture Packer (0) | 2012.12.07 |