Skip to content

Commit

Permalink
Add remove_reference to determine whether template argument to Binary…
Browse files Browse the repository at this point in the history
…Data is const
  • Loading branch information
Albert Ziegenhagel committed Apr 11, 2017
1 parent 68f56ee commit 7723503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cereal/details/helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ namespace cereal
{
//! Internally store the pointer as a void *, keeping const if created with
//! a const pointer
using PT = typename std::conditional<std::is_const<typename std::remove_pointer<T>::type>::value,
using PT = typename std::conditional<std::is_const<typename std::remove_pointer<typename std::remove_reference<T>::type>::type>::value,
const void *,
void *>::type;

Expand Down

0 comments on commit 7723503

Please sign in to comment.