explicit CImg(const char *const filename):_width(0),_height(0),_depth(0),_spectrum(0),_is_shared(false),_data(0) {
assign(filename);
}
上面explicit的作用是什么?
|
|
上面 |
||
|
|
|
|
C++允许用户提供的conversion -- 通过构造函数:
这里
|
||
|
|