Skip to content

Chain SGObject::put #5047

@gf712

Description

@gf712

I was wondering if it would make sense for SGObject::put to return this by reference? That way we could chain various put calls:

auto k = create<Kernel>("GaussianKernel")
         .put("log_width, 1.)
         .put("cache_size", 200);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions