mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
Use boost::container::small_vector in place of VLAs
This commit is contained in:
parent
4d8decbd13
commit
4e790efade
5 changed files with 70 additions and 9 deletions
12
boehmgc-traceable_allocator-public.diff
Normal file
12
boehmgc-traceable_allocator-public.diff
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/include/gc_allocator.h b/include/gc_allocator.h
|
||||
index 597c7f13..587286be 100644
|
||||
--- a/include/gc_allocator.h
|
||||
+++ b/include/gc_allocator.h
|
||||
@@ -312,6 +312,7 @@ public:
|
||||
|
||||
template<>
|
||||
class traceable_allocator<void> {
|
||||
+public:
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef void* pointer;
|
Loading…
Add table
Add a link
Reference in a new issue