Skip to content
Snippets Groups Projects
Forked from ogs / ogs
18384 commits behind the upstream repository.
  • Dmitry Yu. Naumov's avatar
    065d256b
    [MeL] Return PropertyVector* instead of opt refs. · 065d256b
    Dmitry Yu. Naumov authored
    Since boost-1.61 (and also not in the std::optional)
    optionals holding references do have some restrictions
    and are difficult to use. In this special case
    optional<PropertyVector&> is equivalent semantically
    to a PropertyVector*. The pointer indicates that it is
    not owning (contrary to usage of unique_ptr).
    
    Thanks to Christoph pointing this issue out.
    065d256b
    History
    [MeL] Return PropertyVector* instead of opt refs.
    Dmitry Yu. Naumov authored
    Since boost-1.61 (and also not in the std::optional)
    optionals holding references do have some restrictions
    and are difficult to use. In this special case
    optional<PropertyVector&> is equivalent semantically
    to a PropertyVector*. The pointer indicates that it is
    not owning (contrary to usage of unique_ptr).
    
    Thanks to Christoph pointing this issue out.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Properties-impl.h 3.24 KiB