Commit dd53a96 1 parent 5bee223 commit dd53a96 Copy full SHA for dd53a96
File tree 5 files changed +16
-7
lines changed
5 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.5.0)
2
- project (efp_logger VERSION 0.1.0 LANGUAGES C CXX)
2
+ project (efp_logger VERSION 0.1.0 LANGUAGES CXX)
3
3
4
4
set (CMAKE_CXX_STANDARD 11)
5
5
set (CMAKE_CXX_STANDARD_REQUIRED TRUE )
@@ -10,8 +10,17 @@ include(CPack)
10
10
11
11
include (cmake/CPM.cmake)
12
12
13
- CPMAddPackage("gh:cwahn/efp#v0.1.0-rc.3" )
14
- CPMAddPackage("gh:fmtlib/fmt#10.2.1" )
13
+ CPMAddPackage(
14
+ NAME efp
15
+ VERSION 0.1.0-rc.3
16
+ URL "https://github.com/cwahn/efp/archive/refs/tags/v0.1.0-rc.3.tar.gz"
17
+ )
18
+
19
+ CPMAddPackage(
20
+ NAME fmt
21
+ VERSION 10.2.1
22
+ URL "https://github.com/fmtlib/fmt/archive/refs/tags/10.2.1.tar.gz"
23
+ )
15
24
16
25
add_library (efp_logger INTERFACE )
17
26
target_include_directories (efp_logger INTERFACE include )
Original file line number Diff line number Diff line change 1
1
add_executable (efp_logger_example efp_logger_example.cpp)
2
2
target_link_libraries (efp_logger_example PRIVATE efp_logger)
3
3
4
- add_executable (efp_logger_benchmark benchmark .cpp)
4
+ add_executable (efp_logger_benchmark efp_logger_benchmark .cpp)
5
5
target_link_libraries (efp_logger_benchmark PRIVATE efp_logger)
File renamed without changes.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ int main() {
21
21
22
22
// Use the logging functions
23
23
trace (" This is a trace message with no formating" );
24
- debug (" This is a debug message with a pointer: {}" , (void *)&x);
24
+ debug (" This is a debug message with a pointer: {:p }" , (void *)&x);
25
25
info (" This is a info message with a float: {}" , 3 .14f );
26
26
warn (" This is a warn message with a int: {}" , 42 );
27
27
error (" This is a error message with a string literal: {}" , " error" );
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ namespace efp {
139
139
140
140
template <typename A>
141
141
inline Unit enqueue_arg (A a) {
142
- _write_buffer->push_back (a );
142
+ _write_buffer->push_back (detail::LogData{efp::forward<A>(a)} );
143
143
return unit;
144
144
}
145
145
@@ -358,7 +358,7 @@ namespace efp {
358
358
_run.store (false );
359
359
360
360
if (_thread.joinable ())
361
- _thread.join ();
361
+ _thread.join ();
362
362
363
363
#if EFP_LOG_TIME_STAMP == true
364
364
process_with_time ();
You can’t perform that action at this time.
0 commit comments