26#include <ql/time/date.hpp>
27#include <ql/time/period.hpp>
58std::string
to_string(
const QuantLib::Period& period);
66template <
class T> std::string
to_string(
const std::vector<T>& vec,
const std::string& sep =
",") {
67 std::ostringstream oss;
68 for (std::size_t i = 0; i < vec.size(); ++i) {
70 if (i < vec.size() - 1)
80template <
class T> std::string
to_string(
const std::set<T>& set,
const std::string& sep =
",") {
81 std::ostringstream oss;
82 std::size_t
count = 1;
85 if (
count < set.size())
97template <
class T> std::string
to_string(
const T& t) {
98 std::ostringstream oss;
std::string to_string(const LocationInfo &l)
Serializable Credit Default Swap.