Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization] [1.42]Don't understand warning with export
From: dada_at_[hidden]
Date: 2011-01-01 15:10:57


Robert Ramey <ramey_at_[hidden]> a écrit :

> dada_at_[hidden] wrote:
>> Happy new year !
>>
>> Dear boost users,
>>
>> I don' understand this warning (g++, boost v1.42):
>> "export.hpp:129: warning: type qualifiers ignored on function return
>> type"
>> --------------------------
>> export.hpp
>> --------------------------
>> template<class T>
>> struct guid_initializer
>> {
>> ...
>> (L.129) const void export_guid(mpl::true_) const {
>> }
>> ...
>> };
>> -----------------------
>>
>> This warning happens when i use the BOOST_CLASS_EXPORT macro.
>> Any idea ?
>> Thanks,
>> Damien.
>
> This is an innocuous coding error in export.hpp. The warning can
> be ignored and has since been removed.
>
> Robert Ramey
>
Ok, thanks for your answer, could i safely replace the "const void" by
"void" in export.hpp sources ?

"const void export_guid(mpl::true_) const" become
" void export_guid(mpl::true_) const"


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net