Skip to content

Commit 10fc3ed

Browse files
committed
Fix support for vector<bool> serialization with libc++
The vector<bool> serialization supported added in #86 commit 1c6fb04 was only tested with libstdc++ not libc++ and caused a test compilation failure when compiling on macos, reported by edilmedeiros in #92 Fix the issue that was causing the build to fail: trying to use using vector's reference type instead of const_reference type when serializing the vector. Fixes #92
1 parent 7d1fee0 commit 10fc3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mp/proxy-types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ ::capnp::Void BuildPrimitive(InvokeContext& invoke_context, Value&&, TypeList<::
881881
return {};
882882
}
883883

884-
inline static bool BuildPrimitive(InvokeContext& invoke_context, std::vector<bool>::reference value, TypeList<bool>)
884+
inline static bool BuildPrimitive(InvokeContext& invoke_context, std::vector<bool>::const_reference value, TypeList<bool>)
885885
{
886886
return value;
887887
}

0 commit comments

Comments
 (0)