1. 18 May, 2016 1 commit
    • Branislav Katreniak's avatar
      capnp/test: add union in generic struct test - compilation error · 682cc0c5
      Branislav Katreniak authored
      Adding union into TestGenerics struct leads to compilation error
      in generated header:
      ````cpp
      In file included from external/capnproto/c++/src/capnp/test_capnp/capnp/test.capnp.c++:4:0:
      external/capnproto/c++/src/capnp/test_capnp/capnp/test.capnp.h:9565:10: error: need ‘typename’ before ‘capnproto_test::capnp::test::TestGenerics<Foo, Bar>::Ug::Reader’ because ‘capnproto_test::capnp::test::TestGenerics<Foo, Bar>::Ug’ is a dependent scope
         inline Ug::Reader getUg() const;
      ````
      Relavant parts in header file:
      
      ````cpp
      template <typename Foo = ::capnp::AnyPointer, typename Bar = ::capnp::AnyPointer>
      struct TestGenerics {
        ...
        struct Ug;
      };
      
      template <typename Foo, typename Bar>
      class TestGenerics<Foo, Bar>::Reader {
        ...
        inline Ug::Reader getUg() const;
      };
      ````
      
      Compiler misses `typename` keyword before Ug::Reader.
      682cc0c5
  2. 15 May, 2016 1 commit
  3. 10 May, 2016 2 commits
  4. 06 May, 2016 1 commit
  5. 03 May, 2016 2 commits
  6. 02 May, 2016 1 commit
  7. 01 May, 2016 2 commits
  8. 29 Apr, 2016 1 commit
  9. 27 Apr, 2016 4 commits
  10. 23 Apr, 2016 1 commit
  11. 22 Apr, 2016 3 commits
  12. 21 Apr, 2016 2 commits
  13. 19 Apr, 2016 11 commits
  14. 15 Apr, 2016 1 commit
  15. 12 Apr, 2016 2 commits
  16. 11 Apr, 2016 2 commits
    • Alex Richardson's avatar
      7ca97fc0
    • Alex Richardson's avatar
      Add a cmake package config module · f7d685be
      Alex Richardson authored
      This makes it a lot easier for CMake based projects to use Cap'n Proto.
      
      Example usage:
      
      find_package(CapnProto)
      capnp_generate_cpp(FOO_SRCS FOO_HDRS foo.capnp)
      add_executable(foo main.cpp ${FOO_SRCS})
      target_link_libraries(foo CapnProto::capnp CapnProto::capnp-rpc)
      
      This is a lot better than the previous variable based solution since
      linking to nonexistent targets is an error whereas an empty variable
      expansion (e.g. due to typos) will be silently ignored. It also makes
      sure that the right compiler flags, include directories, defines and
      link libraries are passed to the compiler for that target without
      needing any other include_directories(), etc.
      f7d685be
  17. 08 Apr, 2016 3 commits