Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gflags
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
gflags
Commits
754d3329
Commit
754d3329
authored
Oct 15, 2018
by
Andreas Schuh
Committed by
Andreas Schuh
Oct 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: No extern template declaration for MSVC <12.0
parent
82456f22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
.gitignore
.gitignore
+1
-0
gflags.h.in
src/gflags.h.in
+8
-4
No files found.
.gitignore
View file @
754d3329
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
/build/
/build/
/builds/
/builds/
/build-*/
/build-*/
/_build/
.DS_Store
.DS_Store
CMakeCache.txt
CMakeCache.txt
DartConfiguration.tcl
DartConfiguration.tcl
...
...
src/gflags.h.in
View file @
754d3329
...
@@ -442,10 +442,14 @@ class GFLAGS_DLL_DECL FlagRegisterer {
...
@@ -442,10 +442,14 @@ class GFLAGS_DLL_DECL FlagRegisterer {
};
};
// Force compiler to not generate code for the given template specialization.
// Force compiler to not generate code for the given template specialization.
#define GFLAGS_DECLARE_FLAG_REGISTERER_CTOR(type) \
#if defined(_MSC_VER) && _MSC_VER < 1800 // Visual Studio 2013 version 12.0
extern template GFLAGS_DLL_DECL FlagRegisterer::FlagRegisterer( \
#define GFLAGS_DECLARE_FLAG_REGISTERER_CTOR(type)
const char* name, const char* help, const char* filename, \
#else
type* current_storage, type* defvalue_storage)
#define GFLAGS_DECLARE_FLAG_REGISTERER_CTOR(type) \
extern template GFLAGS_DLL_DECL FlagRegisterer::FlagRegisterer( \
const char* name, const char* help, const char* filename, \
type* current_storage, type* defvalue_storage)
#endif
// Do this for all supported flag types.
// Do this for all supported flag types.
GFLAGS_DECLARE_FLAG_REGISTERER_CTOR(bool);
GFLAGS_DECLARE_FLAG_REGISTERER_CTOR(bool);
...
...
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