Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'develop' into modules
Fixed Conflicts:
	include/boost/regex/config.hpp

Also fix up msvc build failures.
Example now build with msvc or with clang.  The build script is still hopelessly broken though.
  • Loading branch information
jzmaddock committed Apr 4, 2024
commit 15acbd51172e5ed21697bd4f28927eddd8115198
2 changes: 2 additions & 0 deletions include/boost/regex/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define BOOST_REGEX_STATIC_CONST static const
#else
#define BOOST_REGEX_STATIC_CONST inline constexpr
#define BOOST_REGEX_STANDALONE
#endif

/*
Expand All @@ -43,6 +44,7 @@
#if defined(__BORLANDC__) && !defined(__clang__)
# include <boost/regex/config/borland.hpp>
#endif

#ifndef BOOST_REGEX_STANDALONE
#include <boost/version.hpp>
#endif
Expand Down
9 changes: 5 additions & 4 deletions module/regex.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
module;

#if defined(_WIN32) && __has_include(<windows.h>)
//
// This has to appear *before* import std; otherwise the compiler chokes.
//
#include <windows.h>
#endif
#include <cctype>
#include <cstddef>
#include <cwctype>
#include <cassert>

#ifdef __cpp_lib_modules
import std;
Expand Down Expand Up @@ -50,6 +49,8 @@ import std.core;
#endif
#endif

#include <cwctype>
#include <assert.h>

#if __has_include(<unicode/utypes.h>)
#include <unicode/utypes.h>
Expand Down
Binary file removed test/module/gcm.cache/boost.regex.gcm
Binary file not shown.
4 changes: 2 additions & 2 deletions test/module/regex_token_iterator_eg_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/


import boost.regex;

#ifdef __cpp_lib_modules
import std;
#elif defined(MSVC_EXPERIMENTAL_STD_MODULE)
Expand All @@ -27,8 +29,6 @@ import std.core;
#include <iterator>
#endif

import boost.regex;

boost::regex e("<\\s*A\\s+[^>]*href\\s*=\\s*\"([^\"]*)\"",
boost::regex::normal | boost::regex::icase);

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.