Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
8c269618
Commit
8c269618
authored
Feb 01, 2021
by
Abseil Team
Committed by
Dino Radaković
Feb 05, 2021
Browse files
Googletest export
Stop referring to Google's internal libraries in FAQ PiperOrigin-RevId: 355060895
parent
f23cf000
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
docs/faq.md
docs/faq.md
+0
-12
No files found.
docs/faq.md
View file @
8c269618
...
@@ -178,18 +178,6 @@ template argument, and thus doesn't compile in opt mode when `a` contains a call
...
@@ -178,18 +178,6 @@ template argument, and thus doesn't compile in opt mode when `a` contains a call
to
`htonl()`
. It is difficult to make
`EXPECT_EQ`
bypass the
`htonl()`
bug, as
to
`htonl()`
. It is difficult to make
`EXPECT_EQ`
bypass the
`htonl()`
bug, as
the solution must work with different compilers on various platforms.
the solution must work with different compilers on various platforms.
`htonl()`
has some other problems as described in
`//util/endian/endian.h`
,
which defines
`ghtonl()`
to replace it.
`ghtonl()`
does the same thing
`htonl()`
does, only without its problems. We suggest you to use
`ghtonl()`
instead of
`htonl()`
, both in your tests and production code.
`//util/endian/endian.h`
also defines
`ghtons()`
, which solves similar problems
in
`htons()`
.
Don't forget to add
`//util/endian`
to the list of dependencies in the
`BUILD`
file wherever
`ghtonl()`
and
`ghtons()`
are used. The library consists of a
single header file and will not bloat your binary.
## The compiler complains about "undefined references" to some static const member variables, but I did define them in the class body. What's wrong?
## The compiler complains about "undefined references" to some static const member variables, but I did define them in the class body. What's wrong?
If your class has a static data member:
If your class has a static data member:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment