3

この非常に単純なプログラムを考えてみましょう:

#include <boost/type_erasure/is_placeholder.hpp>
#include <boost/iterator/iterator_adaptor.hpp>

int main()
{
    return 0;
}

これはコンパイルに失敗します:

  include/boost/type_erasure/is_placeholder.hpp:31:33: error: reference to 'use_default' is ambiguous
    struct is_placeholder< ::boost::use_default> : ::boost::mpl::false_ {};
                                    ^
    include/boost/iterator/iterator_adaptor.hpp:44:18: note: candidate found by name lookup is 'boost::use_default'
    using iterators::use_default;
                     ^
    include/boost/type_erasure/is_placeholder.hpp:21:8: note: candidate found by name lookup is 'boost::use_default'
    struct use_default;
           ^
    1 error generated.

それらのヘッダーファイルを変更したくありません。この問題を回避するにはどうすればよいですか?

4

1 に答える 1