fix meson

This commit is contained in:
chatlanin 2022-03-28 11:38:18 +03:00
parent eff097a059
commit 2a57555436
4 changed files with 4 additions and 31 deletions

View File

@ -1,5 +1,3 @@
deps += hack_dep
executable(
'hack', 'main.cpp',
dependencies : deps,

View File

@ -6,12 +6,3 @@ subdir('logger')
deps += string_dep
deps += logger_dep
lib = library(
'hack',
include_directories : inc,
)
hack_dep = declare_dependency(
include_directories: inc,
link_with: lib
)

View File

@ -1,6 +1,7 @@
#pragma once
#include <map>
#include <functional>
namespace hack::utils
{
@ -24,20 +25,3 @@ namespace hack::utils
};
}
}
// std::map<std::tuple<Args...>, Result> cache;
//
// return [f, cache](Args... args) mutable -> Result
// {
// const auto args_tuple = std::make_tuple(args...);
// const auto cached = cache.find(args_tuple);
//
// if (cached == cache.end())
// {
// auto result = f(args...);
// cache[args_tuple] = result;
// return result;
// }
// else
// return cached->second

View File

@ -6,7 +6,7 @@ test(
executable(
'split_str',
'string.cpp',
dependencies: [ string_dep, gtest_dep ]
dependencies: [ deps, gtest_dep ]
)
)
@ -15,7 +15,7 @@ test(
executable(
'within',
'range.cpp',
dependencies: [ hack_dep, gtest_dep ]
dependencies: [ deps, gtest_dep ]
)
)
@ -24,6 +24,6 @@ test(
executable(
'container',
'container.cpp',
dependencies: [ hack_dep, gtest_dep ]
dependencies: [ deps, gtest_dep ]
)
)