blob: e6bd1645ee2cd120a6c8b60f5fb3030e330fcb6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// file : examples/cxx/hybrid/wildcard/body.cxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : not copyrighted - public domain
#include "body.hxx"
namespace email
{
void body::
body_type (body::type t)
{
if (body_type_ == type_binary)
{
delete binary_;
binary_ = 0;
}
body_type_ = t;
}
void
destroy_body (void* p, size_t)
{
delete static_cast<body*> (p);
}
}
|