Merge pull request #7 from osyo-manga/example_prototype

バグ修正
This commit is contained in:
Bolero MURAKAMI 2012-05-22 03:10:56 -07:00
commit 90897d62df
5 changed files with 349 additions and 350 deletions

View file

@ -6,7 +6,7 @@
// osyo-manga : http://d.hatena.ne.jp/osyo-manga/
//
// Readme:
// https://github.com/osyo-manga/cpp-half/blob/master/README
// https://github.com/bolero-MURAKAMI/Sprout/blob/master/README
//
// License:
// Boost Software License - Version 1.0

View file

@ -6,7 +6,7 @@
// osyo-manga : http://d.hatena.ne.jp/osyo-manga/
//
// Readme:
// https://github.com/osyo-manga/cpp-half/blob/master/README
// https://github.com/bolero-MURAKAMI/Sprout/blob/master/README
//
// License:
// Boost Software License - Version 1.0

View file

@ -82,6 +82,5 @@ main(){
assert(str == "mami");
}
return 0;
}

View file

@ -6,7 +6,7 @@
// osyo-manga : http://d.hatena.ne.jp/osyo-manga/
//
// Readme:
// https://github.com/osyo-manga/cpp-half/blob/master/README
// https://github.com/bolero-MURAKAMI/Sprout/blob/master/README
//
// License:
// Boost Software License - Version 1.0
@ -34,7 +34,7 @@ main(){
//
// parse __TIME__
//
constexpr auto expr = w::int_ >> ':' >> w::int_ >> ':' >> w::int_;
constexpr auto parser = w::int_ >> ':' >> w::int_ >> ':' >> w::int_;
static constexpr auto result = w::parse(time.begin(), time.end(), parser);
static_assert(result.success(), "failed parse");

View file

@ -6,7 +6,7 @@
// osyo-manga : http://d.hatena.ne.jp/osyo-manga/
//
// Readme:
// https://github.com/osyo-manga/cpp-half/blob/master/README
// https://github.com/bolero-MURAKAMI/Sprout/blob/master/README
//
// License:
// Boost Software License - Version 1.0