Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
b26e76ef
Commit
b26e76ef
authored
Jun 14, 2016
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a -Wweak-vtables warning in clang
parent
dfa631e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
fmt/format.cc
fmt/format.cc
+5
-0
fmt/format.h
fmt/format.h
+5
-4
No files found.
fmt/format.cc
View file @
b26e76ef
...
...
@@ -80,6 +80,11 @@ static inline fmt::internal::Null<> strerror_s(char *, std::size_t, ...) {
}
namespace
fmt
{
FMT_FUNC
internal
::
RuntimeError
::~
RuntimeError
()
throw
()
{}
FMT_FUNC
FormatError
::~
FormatError
()
throw
()
{}
FMT_FUNC
SystemError
::~
SystemError
()
throw
()
{}
namespace
{
#ifndef _MSC_VER
...
...
fmt/format.h
View file @
b26e76ef
...
...
@@ -228,7 +228,6 @@ typedef __int64 intmax_t;
# define FMT_ASSERT(condition, message) assert((condition) && message)
#endif
#if FMT_GCC_VERSION >= 400 || FMT_HAS_BUILTIN(__builtin_clz)
# define FMT_BUILTIN_CLZ(n) __builtin_clz(n)
#endif
...
...
@@ -531,13 +530,12 @@ class BasicCStringRef {
typedef
BasicCStringRef
<
char
>
CStringRef
;
typedef
BasicCStringRef
<
wchar_t
>
WCStringRef
;
/**
A formatting error such as invalid format string.
*/
/** A formatting error such as invalid format string. */
class
FormatError
:
public
std
::
runtime_error
{
public:
explicit
FormatError
(
CStringRef
message
)
:
std
::
runtime_error
(
message
.
c_str
())
{}
~
FormatError
()
throw
();
};
namespace
internal
{
...
...
@@ -1316,6 +1314,7 @@ struct NamedArg : Arg {
class
RuntimeError
:
public
std
::
runtime_error
{
protected:
RuntimeError
()
:
std
::
runtime_error
(
""
)
{}
~
RuntimeError
()
throw
();
};
template
<
typename
Impl
,
typename
Char
>
...
...
@@ -2259,6 +2258,8 @@ class SystemError : public internal::RuntimeError {
}
FMT_VARIADIC_CTOR
(
SystemError
,
init
,
int
,
CStringRef
)
~
SystemError
()
throw
();
int
error_code
()
const
{
return
error_code_
;
}
};
...
...
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