|
In the 4.0 release, the Berkeley DB C++ API has been changed to use the ISO standard C++ API in preference to the older, less portable interfaces, where available. This means the Berkeley DB methods that used to take an ostream object as a parameter now expect a std::ostream. Specifically, the following methods have changed:
DbEnv::set_error_stream Db::set_error_stream Db::verify
On many platforms, the old and the new C++ styles are interchangeable; on some platforms (notably Win32), they are incompatible. If your code uses these methods and you have trouble with the 4.0 release, you should update code that looks like this:
#include <iostream.h> #include <db_cxx.h>void foo(Db db) { db.set_error_stream(&cerr); }
to look like this:
#include <iostream> #include <db_cxx.h>using std::cerr;
void foo(Db db) { db.set_error_stream(&cerr); }
Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.