diff options
Diffstat (limited to 'src/lib/netlist/plib/pgsl.h')
-rw-r--r-- | src/lib/netlist/plib/pgsl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pgsl.h b/src/lib/netlist/plib/pgsl.h index 4ddc957b9ac..cb95ecc334c 100644 --- a/src/lib/netlist/plib/pgsl.h +++ b/src/lib/netlist/plib/pgsl.h @@ -116,6 +116,11 @@ namespace plib { using pgsl::narrow_cast; + /// \brief cast to void * + /// + /// The purpose here is to help identifiy casts to void in the code. + /// These case usuallyindicate some wizard assumptioms which should be easily + /// be easy to identify. template <typename T> constexpr void * void_ptr_cast(T *ptr) noexcept { return static_cast<void *>(ptr); } |