From dadf85275263379f2deb94ebf34fe1520d5e8ae7 Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Wed, 21 Sep 2016 19:13:22 -0400 Subject: [PATCH] getting too fancy with aliases --- source/detail/xlsx_consumer.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/source/detail/xlsx_consumer.cpp b/source/detail/xlsx_consumer.cpp index eca23783..2294cf8a 100644 --- a/source/detail/xlsx_consumer.cpp +++ b/source/detail/xlsx_consumer.cpp @@ -1036,16 +1036,13 @@ void xlsx_consumer::read_stylesheet(xml::parser &parser) struct formatting_record { - template - using togglable = std::pair; - - togglable alignment = { {}, 0 }; - togglable border_id = { 0, false }; - togglable fill_id = { 0, false }; - togglable font_id = { 0, false }; - togglable number_format_id = { 0, false }; - togglable protection = { {}, false }; - togglable style_id = { 0, false }; + std::pair alignment = { {}, 0 }; + std::pair border_id = { 0, false }; + std::pair fill_id = { 0, false }; + std::pair font_id = { 0, false }; + std::pair number_format_id = { 0, false }; + std::pair protection = { {}, false }; + std::pair style_id = { 0, false }; }; struct style_data