diff --git a/doc/01_quick_start.qbk b/doc/01_quick_start.qbk
index 2b642df..fee59c5 100644
--- a/doc/01_quick_start.qbk
+++ b/doc/01_quick_start.qbk
@@ -88,12 +88,12 @@ Suppose we want to implement a ['lazy load] optimization. This is because we do
class Widget
{
- boost::optional
class Widget { - boost::optional<Resource> resource_; + mutable boost::optional<const Resource> resource_; public: Widget() {} - Resource& getResource() // not thread-safe + const Resource& getResource() const // not thread-safe { if (resource_ == boost::none) resource_.emplace("resource", "arguments"); diff --git a/doc/html/index.html b/doc/html/index.html index f981d82..297e7be 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -129,7 +129,7 @@
Last revised: June 06, 2014 at 21:22:06 GMT |
+Last revised: June 06, 2014 at 21:50:26 GMT |