Skip to content

Commit

Permalink
Fix warning on windows (#191)
Browse files Browse the repository at this point in the history
* Fix warning on windows

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>

* Apply suggestion

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>

---------

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware authored Jan 24, 2024
1 parent 36da5a4 commit 3c6195a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions include/fastcdr/Cdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -2760,13 +2760,7 @@ class Cdr

if (!value)
{
value = external<_T>{new
#if !defined(_MSC_VER) || _MSC_VER >= 1920
_T()
#else
external<_T>::type()
#endif // if _MSC_VER >= 1920
};
value = external<_T>{new typename external<_T>::type()};
}

deserialize(*value);
Expand Down

0 comments on commit 3c6195a

Please sign in to comment.