diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2015-01-22 12:25:18 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2015-01-22 12:25:18 -0800 |
commit | b2f0d495cd85188e0f9f2d4d363655da40e6e5e6 (patch) | |
tree | ccc8997361bd66efeea6e7e1502e1b483f04ed7f /src/io/extract.cpp | |
parent | 57e5142d5c9d326912610e3bd60743420f8a328a (diff) | |
download | tmwa-b2f0d495cd85188e0f9f2d4d363655da40e6e5e6.tar.gz tmwa-b2f0d495cd85188e0f9f2d4d363655da40e6e5e6.tar.bz2 tmwa-b2f0d495cd85188e0f9f2d4d363655da40e6e5e6.tar.xz tmwa-b2f0d495cd85188e0f9f2d4d363655da40e6e5e6.zip |
Have I mentioned that I hate ADL?
Diffstat (limited to 'src/io/extract.cpp')
-rw-r--r-- | src/io/extract.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/io/extract.cpp b/src/io/extract.cpp index 55d3980..fce4dab 100644 --- a/src/io/extract.cpp +++ b/src/io/extract.cpp @@ -30,25 +30,25 @@ // TODO also pass an io::LineSpan around. namespace tmwa { -bool extract(XString str, XString *rv) +bool impl_extract(XString str, XString *rv) { *rv = str; return true; } -bool extract(XString str, RString *rv) +bool impl_extract(XString str, RString *rv) { *rv = str; return true; } -bool extract(XString str, AString *rv) +bool impl_extract(XString str, AString *rv) { *rv = str; return true; } -bool extract(XString str, std::chrono::nanoseconds *ns) +bool impl_extract(XString str, std::chrono::nanoseconds *ns) { std::chrono::nanoseconds::rep rep; if (extract(str, &rep)) @@ -73,7 +73,7 @@ bool extract(XString str, std::chrono::nanoseconds *ns) } return false; } -bool extract(XString str, std::chrono::microseconds *us) +bool impl_extract(XString str, std::chrono::microseconds *us) { std::chrono::microseconds::rep rep; if (extract(str, &rep)) @@ -98,7 +98,7 @@ bool extract(XString str, std::chrono::microseconds *us) } return false; } -bool extract(XString str, std::chrono::milliseconds *ms) +bool impl_extract(XString str, std::chrono::milliseconds *ms) { std::chrono::milliseconds::rep rep; if (extract(str, &rep)) @@ -123,7 +123,7 @@ bool extract(XString str, std::chrono::milliseconds *ms) } return false; } -bool extract(XString str, std::chrono::seconds *s) +bool impl_extract(XString str, std::chrono::seconds *s) { std::chrono::seconds::rep rep; if (extract(str, &rep)) @@ -148,7 +148,7 @@ bool extract(XString str, std::chrono::seconds *s) } return false; } -bool extract(XString str, std::chrono::minutes *min) +bool impl_extract(XString str, std::chrono::minutes *min) { std::chrono::minutes::rep rep; if (extract(str, &rep)) @@ -173,7 +173,7 @@ bool extract(XString str, std::chrono::minutes *min) } return false; } -bool extract(XString str, std::chrono::hours *h) +bool impl_extract(XString str, std::chrono::hours *h) { std::chrono::hours::rep rep; if (extract(str, &rep)) @@ -198,7 +198,7 @@ bool extract(XString str, std::chrono::hours *h) } return false; } -bool extract(XString str, std::chrono::duration<int, std::ratio<60*60*24>> *d) +bool impl_extract(XString str, std::chrono::duration<int, std::ratio<60*60*24>> *d) { std::chrono::duration<int, std::ratio<60*60*24>>::rep rep; if (extract(str, &rep)) |