G-Node / nix

Neuroscience information exchange format
https://readthedocs.org/projects/nixio/
Other
66 stars 36 forks source link

Section find does not include self in result set #692

Closed jgrewe closed 7 years ago

jgrewe commented 7 years ago

fixes #690

achilleas-k commented 7 years ago

LOOKS AMAZING TO ME

gicmo commented 7 years ago

While we are there, we could make SectionCont be like:

struct SectionCont {
    SectionCont(const Section &s, size_t d = 0)
    : entity(s), depth(d)
    {}

    const Section &entity;
    size_t depth;
};

I think that should work. Could also replace it with std::tuple, though that might make it less readable.