Add appveyor.yml

This commit is contained in:
Jonathan Müller 2017-04-20 20:33:58 +02:00
commit d1fafdaa92
10 changed files with 40 additions and 24 deletions

View file

@ -109,19 +109,13 @@ namespace cppast
using token_seq = detail::semantic_string_view<struct token_seq_tag>;
/// Tag type to represent an end-of-line character.
constexpr struct newl_t
const struct newl_t
{
constexpr newl_t() noexcept
{
}
} newl;
/// Tag type to represent a single space character.
constexpr struct whitespace_t
const struct whitespace_t
{
constexpr whitespace_t() noexcept
{
}
} whitespace;
/// Base class to control the code generation.

View file

@ -54,7 +54,7 @@ namespace cppast
/// \notes This may include template parameters.
std::string semantic_scope() const noexcept
{
return semantic_parent_.map(&cpp_entity_ref::name).value_or("");
return type_safe::copy(semantic_parent_.map(&cpp_entity_ref::name)).value_or("");
}
protected: