mirror of
https://github.com/Z3Prover/z3
synced 2026-06-30 04:18:53 +00:00
Introduce (and use) a macro for the "trailing array" idiom, so we can disable warnings for this when they're in force.
This commit is contained in:
parent
7e3aad4e17
commit
fe2b6fac24
29 changed files with 93 additions and 36 deletions
|
|
@ -19,6 +19,7 @@ Revision History:
|
|||
#pragma once
|
||||
|
||||
#include<string>
|
||||
#include "util/trailing_array.h"
|
||||
#include "util/mutex.h"
|
||||
#include "util/util.h"
|
||||
#include "util/small_object_allocator.h"
|
||||
|
|
@ -57,7 +58,7 @@ typedef unsigned int digit_t;
|
|||
class mpz_cell {
|
||||
unsigned m_size;
|
||||
unsigned m_capacity;
|
||||
digit_t m_digits[0];
|
||||
TRAILING_ARRAY(digit_t, m_digits);
|
||||
friend class mpz_manager<true>;
|
||||
friend class mpz_manager<false>;
|
||||
friend class mpz_stack;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue