Skip to content

Commit

Permalink
bugfix missing typename
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Apr 10, 2024
1 parent ecad122 commit a176cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tom/src/tom/commands/inspirecommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int InspireCommand::run()
// Seed the generator
std::default_random_engine generator(rd());
// Define the range
std::uniform_int_distribution<decltype (inspires)::size_type> // NOLINT(misc-const-correctness)
std::uniform_int_distribution<typename decltype (inspires)::size_type> // NOLINT(misc-const-correctness)
distribute(0, size - 1); // -1 is ok because it's 0-based

comment(inspires.at(distribute(generator)));
Expand Down

0 comments on commit a176cdb

Please sign in to comment.