summaryrefslogtreecommitdiffhomepage
path: root/dev/lib/logic/opt.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dev/lib/logic/opt.hpp')
-rw-r--r--dev/lib/logic/opt.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/dev/lib/logic/opt.hpp b/dev/lib/logic/opt.hpp
index eff08eb..70bce5e 100644
--- a/dev/lib/logic/opt.hpp
+++ b/dev/lib/logic/opt.hpp
@@ -20,7 +20,7 @@ namespace ocl
count = err - okay + 1,
};
- template <typename char_type = char>
+ template <typename char_type = char>
struct opt final
{
explicit opt(const return_type& return_type)
@@ -38,14 +38,14 @@ namespace ocl
return *this;
}
- template <typename ErrorHandler>
+ template <typename ErrorHandler>
opt& expect_or_handle(const char_type* input)
{
if (m_ret == return_type::err)
- {
- ErrorHandler err_handler;
- err_handler(input ? input : "opt::error");
- }
+ {
+ ErrorHandler err_handler;
+ err_handler(input ? input : "opt::error");
+ }
return *this;
}