mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-25 21:35:41 +00:00
19 lines
380 B
C++
19 lines
380 B
C++
#ifndef SPROUT_UTILITY_ANY_CONVERTIBLE_HPP
|
|
#define SPROUT_UTILITY_ANY_CONVERTIBLE_HPP
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
namespace sprout {
|
|
//
|
|
// any_convertible
|
|
//
|
|
struct any_convertible {
|
|
public:
|
|
template<typename T>
|
|
SPROUT_CONSTEXPR operator T() const {
|
|
return T();
|
|
}
|
|
};
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_UTILITY_ANY_CONVERTIBLE_HPP
|