Skip to content

Commit

Permalink
Removed const_cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfjlaros committed Oct 21, 2024
1 parent 5e06815 commit 1ff8cff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/write.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ inline void rpcWrite(Stream& io, char const** data) {
/*! \ingroup write
* \copydoc rpcWrite(Stream&, T) */
inline void rpcWrite(Stream& io, char** data) {
rpcWrite(io, const_cast<char const**>(data));
char const* data_ {*data};
rpcWrite(io, (&data_));
}

/*! \ingroup write
Expand Down

0 comments on commit 1ff8cff

Please sign in to comment.