Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
8c269618
Commit
8c269618
authored
Feb 01, 2021
by
Abseil Team
Committed by
Dino Radaković
Feb 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Stop referring to Google's internal libraries in FAQ PiperOrigin-RevId: 355060895
parent
f23cf000
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
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