started advanced topics section in the docs

This commit is contained in:
Lorenzo Caminiti
2015-06-27 08:03:34 -07:00
parent be3a974847
commit 2fb2ddc367
125 changed files with 2979 additions and 3114 deletions

View File

@@ -0,0 +1,27 @@
//[override_overload
class a
#define BASES public b
: BASES
{
public:
typedef BOOST_CONTRACT_BASE_TYPES(BASES) base_types;
#undef BASES
void f(int x, boost::contract::virtual_* v = 0) /* override */ {
auto c = boost::contract::public_function<override_f>(
v, &a::f, this, x);
/* ... */
}
void f(double x, boost::contract::virtual_* v = 0) /* override */ {
auto c = boost::contract::public_function<override_f>(
v, &a::f, this, x);
/* ... */
}
private:
BOOST_CONTRACT_OVERRIDE(f)
};
//]