Skip to content

Commit

Permalink
Apply style formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBailey committed Jan 11, 2024
1 parent 946439d commit b301095
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 3 additions & 6 deletions examples/boost/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@ target_compile_features(CPMExampleBoost PRIVATE cxx_std_17)

include(../../cmake/CPM.cmake)


CPMAddPackage(
NAME Boost
VERSION 1.84.0
URL https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz
VERSION 1.84.0
URL https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz
URL_HASH SHA256=2e64e5d79a738d0fa6fb546c6e5c2bd28f88d268a2a080546f74e5ff98f29d0e
OPTIONS
"BOOST_ENABLE_CMAKE ON"
"BOOST_INCLUDE_LIBRARIES container\\\;asio" # Note the escapes!
OPTIONS "BOOST_ENABLE_CMAKE ON" "BOOST_INCLUDE_LIBRARIES container\\\;asio" # Note the escapes!
)

target_link_libraries(CPMExampleBoost PRIVATE Boost::asio Boost::container)
6 changes: 4 additions & 2 deletions examples/boost/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
//

#include <boost/asio.hpp>
#include <boost/container/devector.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <iostream>
#include <boost/container/devector.hpp>
#include <string>

boost::container::devector<std::string> strings;

void print(const boost::system::error_code& /*e*/) { for( const auto& a : strings) std::cout << a; }
void print(const boost::system::error_code& /*e*/) {
for (const auto& a : strings) std::cout << a;
}

int main() {
boost::asio::io_service io;
Expand Down

0 comments on commit b301095

Please sign in to comment.