mirror of
https://github.com/corda/corda.git
synced 2025-06-21 16:49:45 +00:00
NOTICK - fix cpp serialiser under linux (#5801)
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <memory>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
/******************************************************************************/
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
|
@ -45,17 +45,14 @@ namespace {
|
||||
|
||||
const std::string & name() const { return m_name; }
|
||||
|
||||
decltype(m_dependsOn.cbegin()) begin() const { return m_dependsOn.cbegin(); }
|
||||
decltype(m_dependsOn.cend()) end() const { return m_dependsOn.cend(); }
|
||||
};
|
||||
decltype(m_dependsOn.cbegin()) begin() const {
|
||||
return m_dependsOn.cbegin();
|
||||
}
|
||||
|
||||
inline
|
||||
std::string
|
||||
str (const amqp::internal::schema::OrderedTypeNotations<OTN> & list_) {
|
||||
std::stringstream ss;
|
||||
ss << list_;
|
||||
return ss.str();
|
||||
}
|
||||
decltype(m_dependsOn.cend()) end() const {
|
||||
return m_dependsOn.cend();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@ -88,6 +85,20 @@ operator << (
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
namespace {
|
||||
|
||||
inline
|
||||
std::string
|
||||
str (const amqp::internal::schema::OrderedTypeNotations<OTN> & list_) {
|
||||
std::stringstream ss;
|
||||
ss << list_;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
TEST (OTNTest, singleInsert) { // NOLINT
|
||||
amqp::internal::schema::OrderedTypeNotations<OTN> list;
|
||||
|
||||
|
Reference in New Issue
Block a user