json_binder_parser.hpp 568 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // json_binder.h
  3. // json
  4. //
  5. // Created by Sam Jaffe on 1/31/16.
  6. // Copyright © 2016 Sam Jaffe. All rights reserved.
  7. //
  8. #ifndef json_parser_h
  9. #define json_parser_h
  10. #pragma once
  11. namespace json {
  12. class value;
  13. namespace binder { template <typename, typename> class visitor; }
  14. namespace parser {
  15. template <typename T, typename S>
  16. void parse(binder::visitor<T, S>&, char const*);
  17. template <typename T, typename S, typename V>
  18. void parse(binder::visitor<T, S>&& v, V& s) {
  19. parse(v, s);
  20. }
  21. }
  22. }
  23. #endif /* json_parser_h */