On quinta-feira, 2 de junho de 2016 09:05:44 BRT Gregg Reynolds wrote: > Here's an error I came across with the Darwin port: > > resource/src/OCRepresentation.cpp:318:48: error: no type named > '_Bit_reference' in namespace 'std' > void get_payload_array::copy_to_array(std::_Bit_reference br, void* > array, size_t pos) > > This is one of six copy_to_array implementations. > > I did a lot of googling and could not figure out what to do with it; it > looks to me like this is an old GNU thing. > > This is the only place _Bit_reference occurs in the source, so I think its > ok to remove this fn?
Probably, plus fixing whatever was trying to call it. As a hint: any underscore + capital is reserved to the compiler and must not be used in user code. So I don't need to consult the C++ documentation to know that this function is wrong. It might be due to the misfeature of std::vector<bool> being a bitfield, not a vector of booleans. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
