-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
0 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,24 @@ | ||
/*============================================================================= | ||
Copyright (C) 2015-2016 DxLibEx project | ||
https://github.com/Nagarei/DxLibEx/ | ||
Distributed under the Boost Software License, Version 1.0. | ||
(See http://www.boost.org/LICENSE_1_0.txt) | ||
=============================================================================*/ | ||
#ifndef DXLE_INC_BASIC_TYPES_BEL_HPP_ | ||
#define DXLE_INC_BASIC_TYPES_BEL_HPP_ | ||
#include <limits> | ||
#include <ratio> | ||
#include <utility> | ||
#include "dxlibex/type_traits/is_ratio.hpp" | ||
#include "dxlibex/type_traits/enable_if.hpp" | ||
namespace dxle { | ||
typedef std::ratio<1, 10000> myrio; | ||
namespace sound_units { | ||
template<typename T, typename Period, enable_if<is_ratio<Period>::value, nullptr_t> = nullptr> | ||
class bel { | ||
|
||
}; | ||
} | ||
} | ||
#endif //DXLE_INC_BASIC_TYPES_BEL_HPP_ |
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,17 @@ | ||
/*============================================================================= | ||
Copyright (C) 2015-2016 DxLibEx project | ||
https://github.com/Nagarei/DxLibEx/ | ||
Distributed under the Boost Software License, Version 1.0. | ||
(See http://www.boost.org/LICENSE_1_0.txt) | ||
=============================================================================*/ | ||
#ifndef DXLE_INC_TYPE_TRAITS_IS_RATIO_HPP_ | ||
#define DXLE_INC_TYPE_TRAITS_IS_RATIO_HPP_ | ||
#include <ratio> | ||
#include <type_traits> | ||
#include <cstdint> | ||
namespace dxle { | ||
template <typename T> struct is_ratio : std::false_type {}; | ||
template <std::intmax_t N, std::intmax_t D> struct is_ratio<std::ratio<N, D>> : std::true_type {}; | ||
} | ||
#endif //DXLE_INC_TYPE_TRAITS_IS_RATIO_HPP_ |
b0f9d97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#51