Skip to content

Commit

Permalink
Fix warning on VS2017 (#176)
Browse files Browse the repository at this point in the history
* Refs #19760. Fix warning on VS2017

Signed-off-by: Ricardo González <correoricky@gmail.com>

* Refs #19760. Fix gcc

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

---------

Signed-off-by: Ricardo González <correoricky@gmail.com>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware authored Nov 13, 2023
1 parent c271e9e commit cc994b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/fastcdr/Cdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -2760,7 +2760,13 @@ class Cdr

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

deserialize(*value);
Expand Down

0 comments on commit cc994b0

Please sign in to comment.