Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
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
ngraph
Commits
c146327a
Commit
c146327a
authored
Jun 14, 2019
by
Adam Procter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fix for systems where int64_t == ptrdiff_t" (it was evil and didn't work anyway)
This reverts commit
b7b6f8fe
.
parent
b7b6f8fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
dimension.hpp
src/ngraph/dimension.hpp
+1
-14
No files found.
src/ngraph/dimension.hpp
View file @
c146327a
...
@@ -73,20 +73,7 @@ namespace ngraph
...
@@ -73,20 +73,7 @@ namespace ngraph
}
}
/// \brief Convert this dimension to `ptrdiff_t`. This dimension must be static.
/// \brief Convert this dimension to `ptrdiff_t`. This dimension must be static.
/// \throws std::invalid_argument If this dimension is dynamic.
/// \throws std::invalid_argument If this dimension is dynamic.
///
explicit
operator
ptrdiff_t
()
const
/// The type signature here is a bit confusing, so it bears explanation. On some systems,
/// `ptrdiff_t` and `int64_t` are equivalent. This means we cannot declare conversion
/// operators for both types. On other systems, `ptrdiff_t` and `int64_t` are different,
/// so we _have_ to declare a separate conversion operator for `ptrdiff_t`.
///
/// On systems where `int64_t` and `ptrdiff_t` are the same type, this definition will be
/// disabled. On systems where they are different, it is equivalent to:
///
/// explicit operator ptrdiff_t() const { ... }
///
explicit
operator
std
::
enable_if
<!
std
::
is_same
<
int64_t
,
ptrdiff_t
>::
value
,
ptrdiff_t
>::
type
()
const
{
{
if
(
is_dynamic
())
if
(
is_dynamic
())
{
{
...
...
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