Skip to content

Commit

Permalink
Merge pull request USCiLab#397 from albertziegenhagel/issue_396
Browse files Browse the repository at this point in the history
Add remove_reference to determine whether template argument to BinaryData is const
  • Loading branch information
AzothAmmo authored Apr 11, 2017
2 parents 68f56ee + 7723503 commit 2ab15f7
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 2ab15f7

Please sign in to comment.