Skip to content

Commit

Permalink
Fix C2512 compile error with Visual Studio 2015 (#234)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Wright <wrightsgdev@gmail.com>
  • Loading branch information
wrightsg and Simon Wright authored Nov 27, 2024
1 parent bfa51aa commit 5f8080d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fastcdr/xcdr/detail/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct optional_storage

/* *INDENT-OFF* */
template<class T>
struct optional_storage<T, typename std::enable_if<std::is_trivially_destructible<T>{}>::type>
struct optional_storage<T, typename std::enable_if<std::is_trivially_destructible<T>::value>::type>
{
union
{
Expand Down

0 comments on commit 5f8080d

Please sign in to comment.