mirror of
https://github.com/boostorg/any.git
synced 2026-01-19 16:12:09 +00:00
17 lines
422 B
C++
17 lines
422 B
C++
// Copyright Antony Polukhin, 2016-2026
|
|
//
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
// To compile manually use a command like the following:
|
|
// clang++ -std=c++20 -fmodule-file=type_index.pcm type_index.pcm usage_sample.cpp
|
|
|
|
//[any_module_example
|
|
import boost.any;
|
|
|
|
int main() {
|
|
boost::any a = 42;
|
|
}
|
|
//]
|
|
|