Skip to content

Impossible to bind a pointer to a value ? #317

@Toinouze

Description

@Toinouze

Expected Behavior

const auto injector = boost::di::make_injector(
           boost::di::bind<T*>.to(myTParam)
   );

should work

Actual Behavior

Gives error
type_<T *>::has_disallowed_qualifiers>

Specifications

  • Version: 1.1.0
  • Platform: MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions