Skip to content

Alias list as reference-counted tag union #20

@elefthei

Description

@elefthei

Instead of being

template<class T>
using list = std::variant<Coq_Nil<T>, Coq_Cons<T>>

Make it be

template<class T>
using list = std::shared_ptr<std::variant<Coq_Nil<T>, Coq_Cons<T>>>

Which makes addPtr redundant, a good thing!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions