/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include namespace o3tl { // Cast an rvalue to an lvalue. Can be useful if a function parameter is a pointer/reference to T, // and some call site doesn't need the value beyond the call itself (e.g., in a call like // std::modf(x, &o3tl::temporary(double())) to obtain the fractional part of x, ignoring the // integral part). template constexpr T& temporary(T&& x) { return x; } template constexpr T& temporary(T&) = delete; } /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ /zeta-7-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2017-03-25Fix typosAndrea Gelmini
2017-02-13Fix typosAndrea Gelmini
2016-11-23oox: update README for recent change.Mark Hung
2015-04-23that has been implemented now, remove from readmeMarkus Mohrhard
2015-02-19start documenting problems around OOXML specMarkus Mohrhard
2014-09-21OOX: Update README with recently made changesDavid Ostrovsky
2014-05-17Correct common misspellings, and remove some ASCII art along the way.Chris Laplante
2013-12-20typo fixesAndras Timar
2013-09-07s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar
2013-07-08Turn Radek's notes into README files.Radek Doulik