Skip to content

Commit

Permalink
Merge pull request boostorg#409 from Kojoley/missing-visibility-mark-…
Browse files Browse the repository at this point in the history
…on-exception-types

Missing visibility mark on exception types
  • Loading branch information
Kojoley committed Oct 22, 2018
2 parents bb3c55e + bfbd691 commit 54b1ae8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
Expand Up @@ -34,7 +34,7 @@ BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
// to allow a single catch handler to catch all exceptions.
//
///////////////////////////////////////////////////////////////////////////
class parser_error_base : public std::exception
class BOOST_SYMBOL_VISIBLE parser_error_base : public std::exception
{
protected:

Expand Down
2 changes: 1 addition & 1 deletion include/boost/spirit/home/classic/iterator/multi_pass.hpp
Expand Up @@ -146,7 +146,7 @@ class first_owner
// thrown by buf_id_check CheckingPolicy if an instance of an iterator is
// used after another one has invalidated the queue
///////////////////////////////////////////////////////////////////////////////
class illegal_backtracking : public std::exception
class BOOST_SYMBOL_VISIBLE illegal_backtracking : public std::exception
{
public:

Expand Down
3 changes: 2 additions & 1 deletion include/boost/spirit/home/qi/detail/expectation_failure.hpp
Expand Up @@ -13,11 +13,12 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#include <boost/spirit/home/support/info.hpp>

#include <boost/config.hpp> // for BOOST_SYMBOL_VISIBLE
#include <stdexcept>

namespace boost { namespace spirit { namespace qi {
template <typename Iterator>
struct expectation_failure : std::runtime_error
struct BOOST_SYMBOL_VISIBLE expectation_failure : std::runtime_error
{
expectation_failure(Iterator first_, Iterator last_, info const& what)
: std::runtime_error("boost::spirit::qi::expectation_failure")
Expand Down
Expand Up @@ -6,13 +6,14 @@
#ifndef BOOST_LEXER_RUNTIME_ERROR_HPP
#define BOOST_LEXER_RUNTIME_ERROR_HPP

#include <boost/config.hpp> // for BOOST_SYMBOL_VISIBLE
#include <stdexcept>

namespace boost
{
namespace lexer
{
class runtime_error : public std::runtime_error
class BOOST_SYMBOL_VISIBLE runtime_error : public std::runtime_error
{
public:
runtime_error (const std::string &what_arg_) :
Expand Down
Expand Up @@ -20,7 +20,7 @@ namespace boost { namespace spirit { namespace iterator_policies
// thrown by buf_id_check CheckingPolicy if an instance of an iterator is
// used after another one has invalidated the queue
///////////////////////////////////////////////////////////////////////////
class illegal_backtracking : public std::exception
class BOOST_SYMBOL_VISIBLE illegal_backtracking : public std::exception
{
public:
illegal_backtracking() throw() {}
Expand Down
2 changes: 1 addition & 1 deletion include/boost/spirit/home/support/utree/utree.hpp
Expand Up @@ -43,7 +43,7 @@ namespace boost { namespace spirit
{
//[utree_exceptions
/*` All exceptions thrown by utree are derived from utree_exception. */
struct utree_exception : std::exception {};
struct BOOST_SYMBOL_VISIBLE utree_exception : std::exception {};

/*`The `bad_type_exception` is thrown whenever somebody calls a member
function, which applies to certain stored utree_type's only, but this
Expand Down
3 changes: 2 additions & 1 deletion include/boost/spirit/home/x3/directive/expect.hpp
Expand Up @@ -11,13 +11,14 @@
#include <boost/spirit/home/x3/core/parser.hpp>
#include <boost/spirit/home/x3/core/detail/parse_into_container.hpp>

#include <boost/config.hpp> // for BOOST_SYMBOL_VISIBLE
#include <boost/throw_exception.hpp>
#include <stdexcept>

namespace boost { namespace spirit { namespace x3
{
template <typename Iterator>
struct expectation_failure : std::runtime_error
struct BOOST_SYMBOL_VISIBLE expectation_failure : std::runtime_error
{
public:

Expand Down

0 comments on commit 54b1ae8

Please sign in to comment.