[buddy] Add a default_deleter for bddPair
* src/bddx.h (std::default_deleter<bddPair>): Here.
This commit is contained in:
parent
0ba6949f7d
commit
0ecc870a0e
1 changed files with 6 additions and 0 deletions
|
|
@ -501,6 +501,7 @@ BUDDY_API_VAR const BDD bddtrue;
|
|||
*************************************************************************/
|
||||
#ifdef CPLUSPLUS
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
|
||||
/*=== User BDD class ===================================================*/
|
||||
|
||||
|
|
@ -1092,6 +1093,11 @@ inline bddxfalse bdd_false(void)
|
|||
{ return bddxfalse(); }
|
||||
|
||||
|
||||
template<>
|
||||
struct std::default_delete<bddPair> {
|
||||
void operator()(bddPair *p) const { bdd_freepair(p); };
|
||||
};
|
||||
|
||||
/*=== Iostream printing ================================================*/
|
||||
|
||||
class BUDDY_API bdd_ioformat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue