mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +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
|