mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-20 21:18:07 +08:00
feat: update codes to v4
This commit is contained in:
40
src/serializer.cpp
Normal file
40
src/serializer.cpp
Normal file
@@ -0,0 +1,40 @@
|
||||
#include <toml11/serializer.hpp>
|
||||
#include <toml11/types.hpp>
|
||||
|
||||
#if ! defined(TOML11_COMPILE_SOURCES)
|
||||
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
|
||||
#endif
|
||||
|
||||
namespace toml
|
||||
{
|
||||
struct type_config;
|
||||
struct ordered_type_config;
|
||||
|
||||
template std::string
|
||||
format<type_config>(const basic_value<type_config>&, const spec);
|
||||
|
||||
template std::string
|
||||
format<type_config>(const typename basic_value<type_config>::key_type& k,
|
||||
const basic_value<type_config>& v, const spec);
|
||||
|
||||
template std::string
|
||||
format<type_config>(const std::vector<typename basic_value<type_config>::key_type>& ks,
|
||||
const basic_value<type_config>& v, const spec s);
|
||||
|
||||
template std::string
|
||||
format<ordered_type_config>(const basic_value<ordered_type_config>&, const spec);
|
||||
|
||||
template std::string
|
||||
format<ordered_type_config>(const typename basic_value<ordered_type_config>::key_type& k,
|
||||
const basic_value<ordered_type_config>& v, const spec);
|
||||
|
||||
template std::string
|
||||
format<ordered_type_config>(const std::vector<typename basic_value<ordered_type_config>::key_type>& ks,
|
||||
const basic_value<ordered_type_config>& v, const spec s);
|
||||
|
||||
namespace detail
|
||||
{
|
||||
template class serializer<::toml::type_config>;
|
||||
template class serializer<::toml::ordered_type_config>;
|
||||
} // detail
|
||||
} // toml
|
Reference in New Issue
Block a user