1 #ifndef GINTENLIB_INCLUDED_ENABLE_IF_HPP_
2 #define GINTENLIB_INCLUDED_ENABLE_IF_HPP_
6 <gintenlib/enable_if.hpp>
8 enable_if : boost::enable_if の using 宣言
11 using boost::enable_if;
12 using boost::enable_if_c;
13 using boost::disable_if;
14 using boost::disable_if_c;
17 単純に gintenlib 内で boost::enable_if を使う機会は多いので、
18 予め using 宣言しておけば、いちいち boost:: と指定してやる必要が無くて楽、だけのヘッダです。
19 あとは TR1 への対応をしやすいように、という意義もあります。
20 その場合は互換性が失われる可能性もあるので、やるとすればメジャーバージョンアップ時でしょうが。
24 #include <boost/utility/enable_if.hpp>
28 using boost::enable_if;
29 using boost::enable_if_c;
30 using boost::disable_if;
31 using boost::disable_if_c;
33 } // namespace gintenlib
36 #endif // #ifndef GINTENLIB_INCLUDED_ENABLE_IF_HPP_