Skip to content

New assert occurs with v9.34 when instantiating an Omega_h::Library #375

@tristan0x

Description

@tristan0x

I am surprised to notice this change that now expects argc and argv to not be nullptr:

OMEGA_H_CHECK(argc != nullptr);
OMEGA_H_CHECK(argv != nullptr);
for (int ic = 0; ic < *argc; ic++) {
argv_.push_back((*argv)[ic]);
}

... since Library provides a default constructor:

inline Library() : Library(nullptr, nullptr) {}

Blue Brain Project doesn't mind updating its usage to now passes argc and argv, but maybe introduce 2 breaking changes in Library API:

  1. remove the Library default constructor
  2. expect argc and argv to be rvalue, not pointers.

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