Main Page
Modules
Namespaces
Classes
Files
File List
File Members
include
ApproxMVBB
Common
CygwinPatch.hpp
Go to the documentation of this file.
1
// ========================================================================================
2
// ApproxMVBB
3
// Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch>
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
// ========================================================================================
9
#ifndef CYGWINPATCH_H_
10
#define CYGWINPATCH_H_
11
#include <string>
12
#include <sstream>
13
14
// This is a patch file for Cygwin-based compilers to overcome a bug present in
15
// the compilers. Code adapted from:
16
// http://stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-so-g
17
18
namespace
std
{
19
20
template
<
typename
T > std::string
to_string
(
const
T& n )
21
{
22
std::ostringstream stm ;
23
stm << n ;
24
return
stm.str() ;
25
}
26
}
27
28
#endif
std
Definition:
CygwinPatch.hpp:18
std::to_string
std::string to_string(const T &n)
Definition:
CygwinPatch.hpp:20
asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Mon Jun 10 2019 12:38:08