From 9a023799376a790d406404d52698b4da06a8c2b6 Mon Sep 17 00:00:00 2001 From: Anton Bachin Date: Sat, 20 Jun 2015 16:21:50 -0500 Subject: [PATCH] Updated README. --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d098b5e..87bacfa 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ for (Channel channel : Channel::_values()) { process(channel); // Iterate over all channels } -// Natural switch, compiler checks the cases +// Automatic case checking, just as with a built-in enum. switch (channel) { case Channel::Red: break; case Channel::Green: break; @@ -31,7 +31,7 @@ switch (channel) { } ``` -...and more. +...and more. You can try it live [here][wandbox]. In C++11, *everything* is available at compile time. You can convert your enums, loop over them, [find their max][max], @@ -43,8 +43,7 @@ The interface is the same for C++98 — you just have to use most of it at run time only. This library does provide scoped and sized enums, something not built into C++98. -See the [project page][project] for full documentation and [here][wandbox] for -a simple working program. +See the [project page][project] for full documentation. [max]: http://aantron.github.io/better-enums/demo/BitSets.html [enforce]: http://aantron.github.io/better-enums/demo/SpecialValues.html