Mirror reflection library 0.5.13
|
00001 00011 #ifndef MIRROR_UTILS_DEFAULT_SUPPLIERS_1011291729_HPP 00012 #define MIRROR_UTILS_DEFAULT_SUPPLIERS_1011291729_HPP 00013 00014 #include <mirror/config.hpp> 00015 #include <mirror/mirror_fwd.hpp> 00016 #include <cassert> 00017 00018 MIRROR_NAMESPACE_BEGIN 00019 00025 template <typename Product, class Unused> 00026 struct default_fact_suppliers 00027 { 00028 template <typename Param, class ConstrInfo> 00029 inline default_fact_suppliers(Param, ConstrInfo) 00030 { } 00031 00032 template <typename Param> 00033 void finish(Param){ } 00034 00035 inline Product operator()(void) const 00036 { 00037 assert(!"Copy construction not supported!"); 00038 return *((Product*)nullptr); 00039 } 00040 }; 00041 00042 MIRROR_NAMESPACE_END 00043 00044 #endif //include guard 00045