Skip to content

Commit

Permalink
extern template std::regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Afforix committed Aug 17, 2024
1 parent ceb908d commit 940ac4d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions std_regex.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include <regex>

extern template class std::basic_regex<char>;
3 changes: 2 additions & 1 deletion thpdf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <cstdio>
#include <cfloat>
#include <cmath>
#include <regex>
#include "std_regex.h"
#include <fmt/core.h>

#include "thpdfdbg.h"
Expand Down Expand Up @@ -1771,3 +1771,4 @@ int thpdf(int m) {
return(0);
}

template class std::basic_regex<char>;
2 changes: 1 addition & 1 deletion thproj.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <cmath>
#include <map>
#include <set>
#include <regex>
#include "std_regex.h"

#ifndef M_PI
#define M_PI 3.14159265358979323846
Expand Down
2 changes: 1 addition & 1 deletion thtexfonts.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <fstream>
#include <iostream>
#include <iomanip>
#include <regex>
#include "std_regex.h"

#include <cstring>
#include <cstdio>
Expand Down

0 comments on commit 940ac4d

Please sign in to comment.