Skip to content

Commit e8d69f4

Browse files
Sebastien Poncesponce
authored andcommitted
Avoid duplication of Complex.hpp in header_unit example
1 parent 74a9425 commit e8d69f4

File tree

3 files changed

+2
-112
lines changed

3 files changed

+2
-112
lines changed

code/header_units/solution/Complex.hpp

Lines changed: 0 additions & 110 deletions
This file was deleted.

code/header_units/solution/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ clean:
66
algorithm numeric random vector:
77
${CXX} -std=c++20 -fmodules-ts -x c++-system-header $@
88

9-
Complex_header_unit: Complex.hpp
9+
Complex_header_unit: ../Complex.hpp
1010
${CXX} -std=c++20 -g -O0 -Wall -Wextra -fmodules-ts -x c++-header $<
1111

1212
main.o: main.cpp Complex_header_unit algorithm numeric random vector

code/header_units/solution/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import <algorithm>;
33
import <vector>;
44
import <numeric>;
55
import <random>;
6-
import "Complex.hpp";
6+
import "../Complex.hpp";
77

88
template<typename T>
99
void compute(int len, T initial, T step) {

0 commit comments

Comments
 (0)