diff --git a/source/detail/implementations/workbook_impl.hpp b/source/detail/implementations/workbook_impl.hpp index 92a64a82..7c4e028f 100644 --- a/source/detail/implementations/workbook_impl.hpp +++ b/source/detail/implementations/workbook_impl.hpp @@ -144,9 +144,13 @@ struct workbook_impl struct file_version_t { std::string app_name; - std::size_t last_edited = 0; - std::size_t lowest_edited = 0; - std::size_t rup_build = 0; + std::size_t last_edited; + std::size_t lowest_edited; + std::size_t rup_build; + + file_version_t(): last_edited(0), lowest_edited(0), rup_build(0) { + + } bool operator==(const file_version_t& rhs) const { diff --git a/source/workbook/workbook.cpp b/source/workbook/workbook.cpp index fcdb6a13..ff96a72e 100644 --- a/source/workbook/workbook.cpp +++ b/source/workbook/workbook.cpp @@ -414,7 +414,11 @@ workbook workbook::empty() wb.extended_property(xlnt::extended_property::hyperlinks_changed, false); wb.extended_property(xlnt::extended_property::app_version, "15.0300"); - auto file_version = detail::workbook_impl::file_version_t{"xl", 6, 6, 26709}; + detail::workbook_impl::file_version_t file_version; + file_version.app_name = "xl"; + file_version.last_edited = 6; + file_version.lowest_edited = 6; + file_version.rup_build = 26709; wb.d_->file_version_ = file_version; xlnt::workbook_view wb_view;