Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No boost #1288

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6bb1c78
Remove boost program_options dependency.
Aug 26, 2019
d522f0b
Remove boost dependency on day formatting.
Aug 26, 2019
326a20d
Remove boost dependency on week formatting.
Aug 26, 2019
a0a27a3
Remove boost dependency on title formatting.
Aug 26, 2019
f39d4ea
Remove dependency on boost headers for formatting.
Aug 26, 2019
a786692
Start setting up to switch from BOOST date to STD_DATE.
Aug 26, 2019
020b4ce
Rename date to CalDate to remove future name clash with date namespace.
Aug 26, 2019
5812db5
Work in progress. Everything compiles except the "incrementable" and…
Aug 28, 2019
a778235
Switched to using IntWrapper concept which wraps a class but presents…
davidsummers Aug 29, 2019
c334e52
Fixed forgotten return value implmentation.
davidsummers Aug 29, 2019
cb6efb3
Fix week calculation. I forgot to change the calculation when I chan…
davidsummers Aug 29, 2019
1f80be4
Turn on required /experimental:preprocessor.
davidsummers Aug 29, 2019
a0e31f0
Only put the /expirimental:preprocessor on MSVC builds.
davidsummers Aug 29, 2019
6a40f24
Fix crash by putting string length calculation in correct place.
davidsummers Aug 29, 2019
644e955
Merge branch 'caldate' of https://github.com/davidsummers/range-v3 in…
davidsummers Aug 29, 2019
959d12f
Merge branch 'caldate' of https://github.com/davidsummers/range-v3 in…
davidsummers Aug 29, 2019
3111b32
Get rid of last vestiges of BOOST.
davidsummers Aug 29, 2019
1daa702
Fix week number calculation.
davidsummers Aug 29, 2019
b3fb5b5
Switch to consistent use of sys_days instead of using both local_days…
davidsummers Aug 29, 2019
50dacc6
Get rid of "magic number" 22, it is the number of characters for each…
davidsummers Aug 29, 2019
a6683af
Cleanup. Formatting. Add accessors. Get rid of magic numbers.
davidsummers Aug 29, 2019
11ce3d3
Cleanup, documentation.
davidsummers Aug 29, 2019
f76c9ec
Added date.h to the build statemet so that it will show up in IDEs such
davidsummers Aug 30, 2019
42061a1
Add year to each month title so we can keep track of years on multipl…
davidsummers Aug 30, 2019
2c2af5f
Merge branch 'master' into no-boost
Sep 12, 2019
7920990
Merge branch 'master' into no-boost
davidsummers Oct 9, 2019
1e5898a
Merge branch 'no-boost' of https://github.com/davidsummers/range-v3 i…
davidsummers Oct 9, 2019
dad52b6
Fixed typo.
davidsummers Oct 9, 2019
e6a0c9e
Get rid of more magic numbers. Set max_weeks to 6 weeks per month.
davidsummers Oct 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 6 additions & 15 deletions example/CMakeLists.txt
Expand Up @@ -19,20 +19,11 @@ rv3_add_test(example.accumulate_ints accumulate_ints accumulate_ints.cpp)
rv3_add_test(example.comprehension_conversion comprehension_conversion comprehension_conversion.cpp)
rv3_add_test(example.sort_unique sort_unique sort_unique.cpp)

# Guarded with a variable because the calendar example causes gcc to puke.
# Guarded with a variable because the calendar example causes MSVC to puke.
if(RANGES_BUILD_CALENDAR_EXAMPLE)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED OFF)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59.0 COMPONENTS date_time program_options)

if (Boost_FOUND)
add_executable(calendar calendar.cpp)
target_include_directories(calendar SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(calendar range-v3 ${Boost_LIBRARIES})
message(STATUS "boost: ${Boost_LIBRARY_DIRS}")
target_compile_definitions(calendar PRIVATE BOOST_NO_AUTO_PTR)
target_compile_options(calendar PRIVATE -std=gnu++14)
set_target_properties(calendar PROPERTIES LINK_FLAGS "-L${Boost_LIBRARY_DIRS}")
endif()
add_executable(calendar calendar.cpp date.h)
target_link_libraries(calendar range-v3)
if( MSVC )
target_compile_options(calendar PRIVATE /experimental:preprocessor)
endif( )
endif()