Skip to content

Commit

Permalink
Refs #19760. Fix gcc
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware committed Nov 13, 2023
1 parent 4b6c387 commit 8525b41
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions fastcdr.repos
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ repositories:
type: git
url: https://github.com/eProsima/Fast-CDR.git
version: master
googletest-distribution:
type: git
url: https://github.com/google/googletest.git
version: release-1.11.0
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 external<_T>::type()};
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 8525b41

Please sign in to comment.