"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libgnucash/engine/gnc-option-impl.hpp" between
gnucash-5.0.tar.bz2 and gnucash-5.1.tar.bz2

About: GnuCash is personal and small-business financial-accounting software.

gnc-option-impl.hpp  (gnucash-5.0.tar.bz2):gnc-option-impl.hpp  (gnucash-5.1.tar.bz2)
skipping to change at line 328 skipping to change at line 328
oss << qof_instance_to_string(value); oss << qof_instance_to_string(value);
return oss; return oss;
} }
template<class OptType, template<class OptType,
typename std::enable_if_t<is_OptionClassifier_v<OptType> && typename std::enable_if_t<is_OptionClassifier_v<OptType> &&
!(is_QofInstanceValue_v<OptType> || !(is_QofInstanceValue_v<OptType> ||
is_RangeValue_v<OptType>), int> = 0> is_RangeValue_v<OptType>), int> = 0>
std::istream& operator>>(std::istream& iss, OptType& opt) std::istream& operator>>(std::istream& iss, OptType& opt)
{ {
std::decay_t<decltype(opt.get_value())> value;
if constexpr (std::is_same_v<std::decay_t<decltype(opt.get_value())>, const _gncOwner*> || if constexpr (std::is_same_v<std::decay_t<decltype(opt.get_value())>, const _gncOwner*> ||
std::is_same_v<std::decay_t<decltype(opt.get_value())>, const _QofQuery*>) std::is_same_v<std::decay_t<decltype(opt.get_value())>, const _QofQuery*>)
return iss; return iss;
else else
{ {
std::decay_t<decltype(opt.get_value())> value;
iss >> value; iss >> value;
opt.set_value(value); opt.set_value(value);
return iss; return iss;
} }
} }
std::istream& operator>> (std::istream& iss, GncOptionCommodityValue& opt); std::istream& operator>> (std::istream& iss, GncOptionCommodityValue& opt);
template<class OptType, template<class OptType,
typename std::enable_if_t<is_QofInstanceValue_v<OptType>, int> = 0> typename std::enable_if_t<is_QofInstanceValue_v<OptType>, int> = 0>
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)