9 Commits

Author SHA1 Message Date
Justin Viiret
97bbb62504 bytecode_ptr: needs <stdexcept> for logic_error 2017-04-26 15:19:43 +10:00
Justin Viiret
37596c50cf bytecode_ptr: avoid shadowing size() 2017-04-26 15:19:43 +10:00
Justin Viiret
d4146059db bytecode_ptr: add shrink() member function 2017-04-26 15:19:43 +10:00
Justin Viiret
82b889f4a2 bytecode_ptr: fix shadow/conversion issues (gcc48) 2017-04-26 15:19:43 +10:00
Justin Viiret
63fe84c3f1 bytecode_ptr: add make_zeroed_bytecode_ptr
Rather than always zeroing memory.
2017-04-26 15:19:36 +10:00
Justin Viiret
5653fa55a1 bytecode_ptr updates 2017-04-26 15:19:36 +10:00
Justin Viiret
67779e0c0a bytecode_ptr: some small improvements 2017-04-26 15:19:36 +10:00
Justin Viiret
a197074c5d nfa: switch to using bytecode_ptr<NFA> 2017-04-26 15:19:36 +10:00
Justin Viiret
6499d306ec bytecode_ptr: new smart pointer type
bytecode_ptr<T> is an aligned_unique_ptr<T> that can be queried for its
size and alignment.
2017-04-26 15:19:35 +10:00