fix passing non-const ref to temporary

This commit is contained in:
Thomas Fussell 2016-08-03 08:46:50 -04:00
parent 116e53fb0c
commit 53e1757c2e

View File

@ -117,7 +117,8 @@ workbook workbook::empty_numbers()
workbook::workbook()
{
swap(*this, empty_excel());
auto wb_template = empty_excel();
swap(*this, wb_template);
}
workbook::workbook(detail::workbook_impl *impl) : d_(impl)