1// Copyright Antony Polukhin, 2013-2024.
2//
3// Distributed under the Boost
4// Software License, Version 1.0. (See accompanying file
5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt).
6
7#include <boost/lexical_cast.hpp>
8#include <string>
9
10int main()
11{
12 volatile int i = 42;
13 boost::lexical_cast<std::string>(arg: i);
14 return 1;
15}
16
17

source code of boost/libs/lexical_cast/test/from_volatile.cpp