Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AutowiringEnclosure MUST be header-only
This is needed in order to prevent near-incompatibility issues from causing programs to crash when trying to link against the AutowiringEnclosure. The root problem, here, is Google's recommendation that users distribute googletest in their own applications. This means that there is no public-facing API that Google is compelled to maintain (in order to evade linker errors) and therefore no ABI to standardize behavior. So, in order to ensure that our class receives the correct layout, we have to make it the consumer's responsibility to ensure correct include ordering.
- Loading branch information
1 parent
663a7c3
commit 20a4dc4
Showing
4 changed files
with
63 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
set(AutoTesting_SOURCES | ||
AutowiringEnclosure.h | ||
AutowiringEnclosure.cpp | ||
gtest-all-guard.h | ||
gtest-all-guard.cpp | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters