Mirror reflection library 0.5.13

mirror/utils/default_suppliers.hpp

Go to the documentation of this file.
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 

Copyright © 2006-2011 Matus Chochlik, University of Zilina, Zilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Fri Dec 16 2011 by Doxygen (version 1.7.3).
Important note: Although the 'boostified' version of Mirror uses the Boost C++ libraries Coding Guidelines and is implemented inside of the boost namespace, it IS NOT an officially reviewed and accepted Boost library. Mirror is being developed with the intention to be submitted for review for inclusion to the Boost C++ libraries.