📄 disable.qbk
字号:
[/ Copyright 2005-2008 Daniel James. / Distributed under the Boost Software License, Version 1.0. (See accompanying / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ][section:disable Disabling The Extensions]While [classref boost::hash]'s extensions are generally useful, you might wantto turn them of in order to check that your code will work with otherimplementations of TR1. To do this define the macro `BOOST_HASH_NO_EXTENSIONS`.When this macro is defined, only the specialisations detailedin TR1 will be declared. But, if you later undefine the macro and include<[headerref boost/functional/hash.hpp]> then the non-specialised form will be defined- activating the extensions.It is strongly recommended that you never undefine the macro - and only defineit so that it applies to the complete translation unit, either by defining itat the beginning of the main source file or, preferably, by using a compilerswitch or preference. And you really should never define it in header files.If you are writing a library which has code in the header which requires theextensions, then the best action is to tell users not to define the macro.Their code won't ['require] the macro.Translation units that are compiled with the macro defined will link with unitsthat were compiled without it. This feature has been designed to avoid ODRviolations.[endsect]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -