Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
EPICS support for Wishbone peripherals
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
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
EPICS support for Wishbone peripherals
Commits
67bc2853
Commit
67bc2853
authored
Aug 25, 2015
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: remove code to clean singleton destructor
This code coud not compile with GCC 4.4.7 (CentOS 6)
parent
9572b40d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
EWBTrace.h
src/ewbcore/EWBTrace.h
+16
-16
No files found.
src/ewbcore/EWBTrace.h
View file @
67bc2853
...
...
@@ -178,22 +178,22 @@ class EWBTrace {
private
:
EWBTrace
()
{};
// Forbidden Constructor
#if __cplusplus <= 199711L
// C++ 11
// =======
// We can use the better technique of deleting the methods
// we don't want.
EWBTrace
(
EWBTrace
const
&
)
=
delete
;
void
operator
=
(
EWBTrace
const
&
)
=
delete
;
#else
// C++ 03
// ========
// Dont forget to declare these two. You want to make sure they
// are unacceptable otherwise you may accidentally get copies of
// your singleton appearing.
EWBTrace
(
EWBTrace
const
&
);
// Don't Implement
void
operator
=
(
EWBTrace
const
&
);
// Don't implement
#endif
//
#if __cplusplus <= 199711L
//
// C++ 11
//
// =======
//
// We can use the better technique of deleting the methods
//
// we don't want.
//
EWBTrace(EWBTrace const&) = delete;
//
void operator=(EWBTrace const&) = delete;
//
#else
//
// C++ 03
//
// ========
//
// Dont forget to declare these two. You want to make sure they
//
// are unacceptable otherwise you may accidentally get copies of
//
// your singleton appearing.
//
EWBTrace(EWBTrace const&); // Don't Implement
//
void operator=(EWBTrace const&); // Don't implement
//
#endif
};
...
...
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