Shows how to use how to use xtd::boxing methods.
#include <xtd/boxing>
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/day_of_week>
#include <xtd/typeof>
class foo {
public:
foo() = default;
foo(int value) : value_(value) {}
int value() const noexcept {return value_;}
bool operator ==(
const foo&
v)
const noexcept {
return value_ == v.value_;}
bool operator <(const foo& v) const noexcept {return value_ < v.value_;}
private:
int value_ = 0;
};
template<typename type_t>
ustring get_boxed_info(
const type_t& value) {
auto boxed_value =
boxing(value);
}
auto main()->int {
}