cpp-common/bt2: add const_cast when setting user data
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 13 Feb 2024 16:00:46 +0000 (11:00 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 19 Feb 2024 18:10:15 +0000 (13:10 -0500)
commit1e700b7d3cd091b474c3f319e4996f321db1f5f7
tree215ac2fea39dc18e50c505af163822b01b5227d8
parent421aa72924715ca75a53861eae3a453eade299a1
cpp-common/bt2: add const_cast when setting user data

If the user data type is specified as a const type,
`static_cast<void *>` will not work.  Fix that by doing a static_cast to
`const void *` then a const_cast to `void *`.

Change-Id: Ic39c9c25da1899defe4edf8c8e800297fbf2fb2d
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11799
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/cpp-common/bt2/self-component-port.hpp
src/cpp-common/bt2/self-message-iterator.hpp
This page took 0.026774 seconds and 4 git commands to generate.