denisbertini / juleva

Julia interface to Gemfony Geneva optimizer
MIT License
0 stars 0 forks source link

Fehlergebietseinschränkung #1

Closed BrimstonezZ closed 2 years ago

BrimstonezZ commented 3 years ago

Der Fehler mit den Options ist nicht im Juleva Code, nach hinzufügen eines cout im geneva code (Go2.cpp im directory geneva/geneva) ist ersichtlicht, dass die Option dort ankommt

denisbertini commented 3 years ago

Versuche mal das Code hier, um vm zu printen:

for (const auto& it : vm) {
  std::cout << it.first.c_str() << " ";
  auto& value = it.second.value();
  if (auto v = boost::any_cast<uint32_t>(&value))
    std::cout << *v;
  else if (auto v = boost::any_cast<std::string>(&value))
    std::cout << *v;
  else
    std::cout << "error";
}