diff --git a/wombat/src/main/cpp/utils/Cache.cpp b/wombat/src/main/cpp/utils/Cache.cpp index d9fed971..e3eaa720 100644 --- a/wombat/src/main/cpp/utils/Cache.cpp +++ b/wombat/src/main/cpp/utils/Cache.cpp @@ -1,3 +1,7 @@ +// Copyright (c) 2023-2024 CurtinFRC +// Open Source Software, you can modify it according to the terms +// of the MIT License at the root of this project + #include "utils/Cache.h" #include "utils/Util.h" diff --git a/wombat/src/main/include/utils/Cache.h b/wombat/src/main/include/utils/Cache.h index beb6c420..f466f537 100644 --- a/wombat/src/main/include/utils/Cache.h +++ b/wombat/src/main/include/utils/Cache.h @@ -1,9 +1,13 @@ -#pragma once +// Copyright (c) 2023-2024 CurtinFRC +// Open Source Software, you can modify it according to the terms +// of the MIT License at the root of this project -#include +#pragma once #include +#include + namespace wom { namespace utils { @@ -16,7 +20,7 @@ class Cached { * * @param supplier A function that sources the value. */ - Cached(std::function supplier); + explicit Cached(std::function supplier); /** * Creates a new Cached with the given supplier.