Skip to content

Commit

Permalink
Added (hopefully) a fix for building with new MSVC version
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyyrylainen committed Sep 3, 2018
1 parent a1cb832 commit 716766c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/engine/serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,12 @@ struct StorageContainer::Implementation {
typename TypeInfo<T>::StoredType
rawGet(const std::string& key,
const typename TypeInfo<T>::StoredType& defaultValue =
typename TypeInfo<T>::StoredType()) const
#ifdef _MSC_VER // Microsoft, why?
TypeInfo<T>::StoredType()
#else
typename TypeInfo<T>::StoredType()
#endif
) const
{
auto iter = m_content.find(key);
if(iter == m_content.end()) {
Expand Down

0 comments on commit 716766c

Please sign in to comment.