dfaure added a comment.

  Then write your own, it's easy:
  
    // this adds const to non-const objects (like std::as_const)
    template <typename T> Q_DECL_CONSTEXPR typename std::add_const<T>::type 
&koAsConst(T &t) noexcept { return t; }
    // prevent rvalue arguments:
    template <typename T> void koAsConst(const T &&) = delete;

REPOSITORY
  R8 Calligra

REVISION DETAIL
  https://phabricator.kde.org/D25664

To: ognarb, #calligra:_3.0, #kf6, dfaure
Cc: danders, dfaure, Calligra-Devel-list, davidllewellynjones, dcaliste, 
ognarb, cochise, vandenoever

Reply via email to