Commit a191afed authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Assertion for calling HyperParams Opt without opt

parent 947cff03
#ifndef LIMBO_MODEL_GP_NO_LF_OPT_HPP
#define LIMBO_MODEL_GP_NO_LF_OPT_HPP
#include <iostream>
namespace limbo {
namespace model {
namespace gp {
......@@ -9,7 +11,11 @@ namespace limbo {
template <typename Params>
struct NoLFOpt {
template <typename GP>
void operator()(GP&) const {}
void operator()(GP&) const
{
std::cerr << "'NoLFOpt' should never be called!" << std::endl;
assert(false);
}
};
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment