Corrupted AutoHashMap?
Ziggit
Corrupted AutoHashMap?
Hey all, new to Zig and attempting to port a few of my other projects to the language. I’m running in to an issue while attempting to use an AutoHashMap as a member on a struct. Here is the code: const NodeType = enum { Root, Inner, Leaf }; const Node = struct { allocator: std.mem.Allocator, node_type: NodeType, key_map: *std.AutoHashMap(i32, []u8), child_node: ?*Node, pub fn init(allocator: std.mem.Allocator, node_type: NodeType) @This() { var key_map = std.AutoHa...
0 comments
No comments yet.