Commit 7395b5d
committed
vendored boost/regex.hpp is now a private dependency
- Do not include boost/regex.hpp in the main api file (TextEditor.h), so that users do not need to add vendor/boost/regex to their include path
- Only TextEditor.cpp will include boost/regex.hpp (private dependency)
- We use a partial pImpl: RegexList is declared inside TextEditor.h, and implemented inside TextEditor.cpp
- We use a shared_ptr<RegexList> instead of unique_ptr , because we want to keep TextEditor copyable (otherwise, this would break the API for existing users)1 parent 74fcc63 commit 7395b5d
2 files changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| |||
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
93 | | - | |
| 101 | + | |
94 | 102 | | |
95 | | - | |
| 103 | + | |
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
| |||
2630 | 2638 | | |
2631 | 2639 | | |
2632 | 2640 | | |
2633 | | - | |
| 2641 | + | |
2634 | 2642 | | |
2635 | 2643 | | |
2636 | 2644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
304 | 303 | | |
305 | 304 | | |
306 | 305 | | |
307 | | - | |
308 | 306 | | |
309 | 307 | | |
310 | 308 | | |
| |||
456 | 454 | | |
457 | 455 | | |
458 | 456 | | |
459 | | - | |
460 | 457 | | |
461 | 458 | | |
462 | 459 | | |
| |||
469 | 466 | | |
470 | 467 | | |
471 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
472 | 473 | | |
0 commit comments