GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
gnss_sdr_string_literals.h
Go to the documentation of this file.
1/*!
2 * \file gnss_sdr_string_literals.h
3 * \brief This file implements the ""s operator for std::string in C++11, and
4 * puts it into the std::string_literals namespace. This is already implemented
5 * in C++14, so this is only compiled when using C++11. The .cc file is required
6 * for avoiding the duplication of symbols.
7 *
8 * \author Carles Fernandez-Prades, 2021. cfernandez(at)cttc.es
9 *
10 *
11 * -----------------------------------------------------------------------------
12 *
13 * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
14 * This file is part of GNSS-SDR.
15 *
16 * Copyright (C) 2010-2021 (see AUTHORS file for a list of contributors)
17 * SPDX-License-Identifier: GPL-3.0-or-later
18 *
19 * -----------------------------------------------------------------------------
20 */
21
22#ifndef GNSS_SDR_STRING_LITERALS_H
23#define GNSS_SDR_STRING_LITERALS_H
24
25/** \addtogroup Algorithms_Library
26 * \{ */
27/** \addtogroup Algorithm_libs algorithms_libs
28 * \{ */
29
30#if __cplusplus == 201103L
31
32#include <cstddef>
33#include <string>
34
35namespace std
36{
37namespace string_literals
38{
39std::string operator"" s(const char* str, std::size_t len);
40} // namespace string_literals
41} // namespace std
42
43#endif // __cplusplus == 201103L
44
45/** \} */
46/** \} */
47
48#endif // GNSS_SDR_STRING_LITERALS_H
STL namespace.