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
6f3c095e
Commit
6f3c095e
authored
Dec 03, 2014
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FMT_DISALLOW_COPY_AND_ASSIGN instead of undefined assignment operators
parent
0fea89ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
format.cc
format.cc
+8
-7
format.h
format.h
+2
-2
No files found.
format.cc
View file @
6f3c095e
...
...
@@ -240,10 +240,10 @@ void check_sign(const Char *&s, const Arg &arg) {
// left alignment if it is negative.
class
WidthHandler
:
public
fmt
::
internal
::
ArgVisitor
<
WidthHandler
,
unsigned
>
{
private:
WidthHandler
&
operator
=
(
WidthHandler
const
&
);
//no impl
fmt
::
FormatSpec
&
spec_
;
FMT_DISALLOW_COPY_AND_ASSIGN
(
WidthHandler
);
public:
explicit
WidthHandler
(
fmt
::
FormatSpec
&
spec
)
:
spec_
(
spec
)
{}
...
...
@@ -286,11 +286,11 @@ class PrecisionHandler :
template
<
typename
T
>
class
ArgConverter
:
public
fmt
::
internal
::
ArgVisitor
<
ArgConverter
<
T
>
,
void
>
{
private:
ArgConverter
&
operator
=
(
ArgConverter
const
&
);
//no impl
fmt
::
internal
::
Arg
&
arg_
;
wchar_t
type_
;
FMT_DISALLOW_COPY_AND_ASSIGN
(
ArgConverter
);
public:
ArgConverter
(
fmt
::
internal
::
Arg
&
arg
,
wchar_t
type
)
:
arg_
(
arg
),
type_
(
type
)
{}
...
...
@@ -326,9 +326,10 @@ class ArgConverter : public fmt::internal::ArgVisitor<ArgConverter<T>, void> {
// Converts an integer argument to char for printf.
class
CharConverter
:
public
fmt
::
internal
::
ArgVisitor
<
CharConverter
,
void
>
{
private:
CharConverter
&
operator
=
(
CharConverter
const
&
);
// no impl
fmt
::
internal
::
Arg
&
arg_
;
FMT_DISALLOW_COPY_AND_ASSIGN
(
CharConverter
);
public:
explicit
CharConverter
(
fmt
::
internal
::
Arg
&
arg
)
:
arg_
(
arg
)
{}
...
...
@@ -531,13 +532,13 @@ template <typename Char>
class
fmt
::
internal
::
ArgFormatter
:
public
fmt
::
internal
::
ArgVisitor
<
fmt
::
internal
::
ArgFormatter
<
Char
>
,
void
>
{
private:
ArgFormatter
&
operator
=
(
ArgFormatter
const
&
);
// no impl
fmt
::
BasicFormatter
<
Char
>
&
formatter_
;
fmt
::
BasicWriter
<
Char
>
&
writer_
;
fmt
::
FormatSpec
&
spec_
;
const
Char
*
format_
;
FMT_DISALLOW_COPY_AND_ASSIGN
(
ArgFormatter
);
public:
ArgFormatter
(
fmt
::
BasicFormatter
<
Char
>
&
f
,
fmt
::
FormatSpec
&
s
,
const
Char
*
fmt
)
...
...
format.h
View file @
6f3c095e
...
...
@@ -991,10 +991,10 @@ class PrintfFormatter : private FormatterBase {
template
<
typename
Char
>
class
BasicFormatter
:
private
internal
::
FormatterBase
{
private:
BasicFormatter
&
operator
=
(
BasicFormatter
const
&
);
// no impl
BasicWriter
<
Char
>
&
writer_
;
const
Char
*
start_
;
FMT_DISALLOW_COPY_AND_ASSIGN
(
BasicFormatter
);
// Parses argument index and returns corresponding argument.
internal
::
Arg
parse_arg_index
(
const
Char
*&
s
);
...
...
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