From 1ce84922e3008cad6cf1b9056b705f2642bd3772 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 28 Oct 2015 17:56:30 +0200 Subject: WEB pages re-styling --- web/module | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'web/module') diff --git a/web/module b/web/module index 7398d45..25c4bf2 100644 --- a/web/module +++ b/web/module @@ -14,6 +14,7 @@ #include // runtime_error #include +#include namespace web { @@ -57,15 +58,18 @@ namespace web sequence_error (std::string d): std::runtime_error (std::move (d)) {} }; + template + using optional = butl::optional; + struct name_value { // These should eventually become string_view's. // std::string name; - std::string value; + optional value; name_value () {} - name_value (std::string n, std::string v) + name_value (std::string n, optional v) : name (std::move (n)), value (std::move (v)) {} }; -- cgit v1.1