Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2081

Compilation fails with clang

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.8.2
    • 1.9.0
    • c++
    • None
    • FreeBSD, clang++ (3.8.0)

    Description

      Building on clang fails with the error below. This is because of the vector<bool> specialization. We need a codec_traits specialization for vector<bool>::const_reference.

      avro/lang/c++/api/Specific.hh:321:22: error: no member named 'encode' in 'avro::codec_traits<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >'
          codec_traits<T>::encode(e, t);
          ~~~~~~~~~~~~~~~~~^
      avro/lang/c++/api/Specific.hh:235:23: note: in instantiation of function template specialization 'avro::encode<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here
                      avro::encode(e, *it);
                            ^
      avro/lang/c++/api/Specific.hh:321:22: note: in instantiation of member function 'avro::codec_traits<std::__1::vector<bool, std::__1::allocator<bool> > >::encode' requested here
          codec_traits<T>::encode(e, t);
                           ^
      

      Attachments

        1. AVRO-2081.patch
          0.7 kB
          Purushotham Nayak

        Issue Links

          Activity

            People

              pnayak Purushotham Nayak
              pnayak Purushotham Nayak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: