cxx.so

来自「berkeley db 4.6.21的源码。berkeley db是一个简单的数」· SO 代码 · 共 47 行

SO
47
字号
m4_comment([$Id: cxx.so,v 1.3 2005/12/01 03:18:53 bostic Exp $])m4_ref_title(Upgrading m4_db Applications,    Release 4.0: C++ ostream objects,,    upgrade.4.0/java, upgrade.4.0/asr)m4_p([dnlIn the 4.0 release, the m4_db C++ API has been changed to use the ISOstandard C++ API in preference to the older, less portable interfaces,where available.  This means the m4_db methods that used to take anostream object as a parameter now expect a std::ostream.  Specifically,the following methods have changed:])m4_indent([dnlDbEnv::set_error_streamDb::set_error_streamDb::verify])m4_p([dnlOn many platforms, the old and the new C++ styles are interchangeable;on some platforms (notably Windows systems), they are incompatible. Ifyour code uses these methods and you have trouble with the 4.0 release,you should update code that looks like this:])m4_indent([dnl#include __LT__iostream.h__GT__#include __LT__db_cxx.h__GT__m4_blankvoid foo(Db db) {	db.set_error_stream(&cerr);}])m4_p([dnlto look like this:])m4_indent([dnl#include __LT__iostream__GT__#include __LT__db_cxx.h__GT__m4_blankusing std::cerr;m4_blankvoid foo(Db db) {	db.set_error_stream(&cerr);}])m4_page_footer

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?