Commit 9aa411a
authored
break circular include (#237)
* include registration: add failing unit test
* include registration: break circular include loop
otherwise, when a user include directly this header without fwd.hpp, as
in the include.cpp regression test:
Dans le fichier inclus depuis ../include/eigenpy/fwd.hpp:35,
depuis ../include/eigenpy/registration.hpp:9,
depuis ../unittest/include.cpp:7:
../include/eigenpy/expose.hpp: Dans la fonction « void eigenpy::expose() »:
../include/eigenpy/expose.hpp:27:9: erreur: « register_symbolic_link_to_registered_type » n'a pas été déclaré dans cette portée
27 | if(!register_symbolic_link_to_registered_type<T>())
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/eigenpy/expose.hpp:27:52: erreur: expected primary-expression before « > » token
27 | if(!register_symbolic_link_to_registered_type<T>())
| ^
../include/eigenpy/expose.hpp:27:50: attention: le non logique est toujours appliqué au membre de gauche de la comparaison [-Wlogical-not-parentheses]
27 | if(!register_symbolic_link_to_registered_type<T>())
| ^
../include/eigenpy/expose.hpp:27:54: erreur: expected primary-expression before « ) » token
27 | if(!register_symbolic_link_to_registered_type<T>())
| ^1 parent ecd138d commit 9aa411a
File tree
3 files changed
+12
-2
lines changed- include/eigenpy
- unittest
3 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
10 | | - | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments