diagnostics.hpp 547 B

1234567891011121314151617181920
  1. //
  2. // Copyright (c) 2019-2023 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. #ifndef BOOST_MYSQL_IMPL_DIAGNOSTICS_HPP
  8. #define BOOST_MYSQL_IMPL_DIAGNOSTICS_HPP
  9. #pragma once
  10. #include <boost/mysql/diagnostics.hpp>
  11. struct boost::mysql::detail::diagnostics_access
  12. {
  13. static void assign(diagnostics& obj, string_view from) { obj.msg_.assign(from.begin(), from.end()); }
  14. };
  15. #endif