Skip to content

Commit

Permalink
Add mroe missing headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Apr 5, 2024
1 parent b2a9ae0 commit 5ae50a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nvbench/criterion_manager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
#include <nvbench/criterion_manager.cuh>
#include <nvbench/detail/throw.cuh>

#include <algorithm>
#include <memory>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <utility>

namespace nvbench
{

Expand Down Expand Up @@ -60,7 +67,7 @@ stopping_criterion_base &criterion_manager::add(std::unique_ptr<stopping_criteri

auto [it, success] = m_map.emplace(name, std::move(criterion));

if (!success)
if (!success)
{
NVBENCH_THROW(std::runtime_error,
"Stopping criterion \"{}\" is already registered.", name);
Expand Down

0 comments on commit 5ae50a8

Please sign in to comment.