boost_no_bcb_partial_spec.ipp

来自「Boost provides free peer-reviewed portab」· IPP 代码 · 共 54 行

IPP
54
字号
//  (C) Copyright Terje Slettebo 2002. //  Use, modification and distribution are subject to 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)//  MACRO:         BOOST_BCB_PARTIAL_SPECIALIZATION_BUG//  TITLE:         Full partial specialization support.//  DESCRIPTION:   Borland C++ Builder has some rather specific partial//                 specialisation bugs which this code tests for.#include <vector>namespace boost_bcb_partial_specialization_bug{template<class T1,class T2>class Test{};template<class T1,class T2>class Test<std::vector<T1>,T2>{};template<class T>class Test<std::vector<int>,T>{};template <class T>struct is_const{};template <class T>struct is_const<T const>{};int test(){   Test<std::vector<int>,double> v;   is_const<const int> ci;   (void)v; // warning suppression   (void)ci;   return 0;}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?