Closed Mazenak closed 4 years ago
For questions about best practices or how to achieve something, I'd suggest asking in the MobileCpp Slack community which is referenced in the REAME.md; you'll probably get a much faster response there, since this repo doesn't have active maintainers.
What operators do you need? Generated records will get comparison operators if you enable it via deriving (eq, ord)
, which should let you use std::set
. Custom std::hash
are also generated when necessary, so you can use std::unordered_set
.
Hi, I'm facing a problem with the operator functions. I've created a custom class by djinni and it's generated as follows:
and I need to create a set of it, so I need to implement custom operator. what is the way to do it with djinni ? what is the best practice for this cases ?
Thanks