Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic-graph
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
dynamic-graph
Commits
75a0fecf
Commit
75a0fecf
authored
14 years ago
by
Thomas Moulard
Browse files
Options
Downloads
Patches
Plain Diff
Add nullptr class.
parent
dcd594f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/CMakeLists.txt
+1
-0
1 addition, 0 deletions
include/CMakeLists.txt
include/dynamic-graph/null-ptr.hh
+41
-0
41 additions, 0 deletions
include/dynamic-graph/null-ptr.hh
with
42 additions
and
0 deletions
include/CMakeLists.txt
+
1
−
0
View file @
75a0fecf
...
...
@@ -33,6 +33,7 @@ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/import-default-paths.h
# Headers list.
SET
(
${
PROJECT_NAME
}
_HEADERS
fwd.hh
null-ptr.hh
contiifstream.h
debug.h
...
...
This diff is collapsed.
Click to expand it.
include/dynamic-graph/null-ptr.hh
0 → 100644
+
41
−
0
View file @
75a0fecf
// Copyright 2010, Thomas Moulard, JRL, CNRS/AIST
//
// This file is part of dynamic-graph.
// dynamic-graph is free software: you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation, either version 3 of
// the License, or (at your option) any later version.
//
// dynamic-graph is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Lesser Public License for more details. You should have
// received a copy of the GNU Lesser General Public License along with
// dynamic-graph. If not, see <http://www.gnu.org/licenses/>.
#ifndef DYNAMIC_GRAPH_NULL_PTR_HH
# define DYNAMIC_GRAPH_NULL_PTR_HH
namespace
dynamicgraph
{
const
class
{
public:
template
<
class
T
>
operator
T
*
()
const
{
return
0
;
}
template
<
class
C
,
class
T
>
operator
T
C
::*
()
const
{
return
0
;
}
private
:
void
operator
&
()
const
;
}
nullptr
=
{};
}
// end of namespace dynamicgraph.
#endif //! DYNAMIC_GRAPH_NULL_PTR_HH
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment