1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/utility/any_convertible.hpp

20 lines
380 B
C++
Raw Normal View History

2012-11-13 13:17:10 +00:00
#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