1. 11 Jan, 2018 1 commit
    • Kenton Varda's avatar
      Replace all include guards with #pragma once. · 677a52ab
      Kenton Varda authored
      @kloepper pointed out a while back that every compiler you've ever heard of supports this. Plus, it's more concise, it's not prone to copy-paste errors, and it looks nicer.
      
      At the time I wanted to remain consistent and I didn't feel like spending the time to update all my existing code. But, every time I've added a new header since I've cursed the include guard, so I finally broke down and changed it.
      677a52ab
  2. 10 Nov, 2017 1 commit
  3. 12 Oct, 2017 1 commit
  4. 21 Sep, 2017 1 commit
  5. 19 Sep, 2017 1 commit
  6. 12 Sep, 2017 1 commit
    • Kenton Varda's avatar
      Implement _kj suffix for string literals. · 8777008e
      Kenton Varda authored
      E.g.:
      
          "foo"_kj
      
      This literal will have type StringPtr. Although any string literal can implicitly cast to StringPtr, using the _kj suffix has the advantage that it can be constexpr.
      8777008e
  7. 27 Jun, 2017 1 commit
  8. 01 Jun, 2017 1 commit
  9. 23 May, 2017 1 commit
    • Kenton Varda's avatar
      Improve KJ encoding lib error handling: · df52bf86
      Kenton Varda authored
      - Rename UtfResult -> EncodingResult
      - Make it usable like a Maybe, so that we don't need separate "try" functions.
      - Check errors in hex decoding and URI decoding.
      df52bf86
  10. 22 May, 2017 1 commit
    • Kenton Varda's avatar
      Disable implicit conversion from string literal to ArrayPtr<const char>. · 97aae1bb
      Kenton Varda authored
      This conversion would end up including the NUL terminator in the array, which is almost never what you want.
      
      We can perhaps re-enable this in the future and have it automatically remove the NUL terminator, but we should do at least one release with it disabled to catch anyone who might be affected by the change in behavior.
      97aae1bb
  11. 05 May, 2017 1 commit
  12. 29 Apr, 2017 2 commits
  13. 25 Apr, 2017 1 commit
  14. 11 Apr, 2017 1 commit
  15. 10 Apr, 2017 1 commit
  16. 07 Apr, 2017 3 commits
  17. 30 Mar, 2017 2 commits
  18. 29 Mar, 2017 1 commit
  19. 24 Mar, 2017 2 commits
  20. 24 Jan, 2017 3 commits
  21. 15 Nov, 2016 1 commit
  22. 13 Jun, 2016 1 commit
  23. 20 May, 2016 2 commits
  24. 02 May, 2016 1 commit
  25. 06 Apr, 2016 2 commits
  26. 16 Nov, 2015 1 commit
  27. 09 Jun, 2015 1 commit
  28. 05 May, 2015 1 commit
  29. 21 Apr, 2015 1 commit
    • Kenton Varda's avatar
      Work around Clang bug 22354. · b0599220
      Kenton Varda authored
      https://llvm.org/bugs/show_bug.cgi?id=22354
      
      At the time DisallowConstCopy was introduced, GCC 4.7 and Clang 3.2 refused to allow the non-const copy constructors to be defaulted inline. This must have been concluded to be a compiler bug, as GCC 4.8 and Clang 3.4 seem fine with it. So, we can clean this up.
      
      Meanwhile, the above-linked Clang bug triggered when a DisallowConstCopy derivative is captured by value in a C++14 generic lambda. capnp::CallContext in particular tended to be hit by this a lot. The bug only affects non-default (or out-of-line default) copy constructors, and thus is conveniently sidestepped by this change.
      b0599220
  30. 22 Mar, 2015 1 commit
  31. 15 Mar, 2015 1 commit