-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The file containing the specializations of traits for specific optional dependencies have been moved to their own files. This allows us to move to macro free dependency handling, simply by removing certain guarded includes.
- Loading branch information
Showing
8 changed files
with
307 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include <cstddef> | ||
#include <numeric> | ||
#include <functional> | ||
#include <vector> | ||
|
||
namespace HighFive { | ||
|
||
inline size_t compute_total_size(const std::vector<size_t>& dims) { | ||
return std::accumulate(dims.begin(), dims.end(), size_t{1u}, std::multiplies<size_t>()); | ||
} | ||
|
||
template <typename T> | ||
using unqualified_t = typename std::remove_const<typename std::remove_reference<T>::type>::type; | ||
|
||
|
||
namespace details { | ||
|
||
template <typename T> | ||
struct type_helper; | ||
|
||
template <typename T> | ||
struct inspector; | ||
|
||
} // namespace details | ||
} // namespace HighFive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.