Following the schema introduction (https://capnproto.org/language.html), I 
have something like the following:

struct Map(Key, Value) {
  entries @0 :List(Entry);
  struct Entry {
    key @0 :Key;
    value @1 :Value;
  }
}


struct Directory {
 contents @0 :Map(UInt64, UInt64);
}


But capnproto isn't too happy about this:

src/newworld/filetree.capnp:51:23-29: error: Sorry, only pointer types can 
be used as generic parameters.

I understand what this is saying, but I'm a bit puzzled as to why this 
constraint exists... Why are only pointer types allowed as the 
instantiations of generic parameters?

Thanks,
Samuel

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/capnproto/9668d18e-63d3-4643-ac24-a32f11fc8bde%40googlegroups.com.

Reply via email to