Skip to content

Commit 9bacf44

Browse files
authored
Merge pull request #220 from h-2/fixstatic
GCC13
2 parents cf59351 + 42eae85 commit 9bacf44

10 files changed

+24
-25
lines changed

.github/workflows/ci_linux.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ jobs:
2828
cc: "gcc-12"
2929
build_type: Release
3030

31+
- name: "gcc13"
32+
install: "g++-13"
33+
cxx: "g++-13"
34+
cc: "gcc-13"
35+
build_type: Release
36+
3137
- name: "gcc12"
3238
install: "g++-12"
3339
cxx: "g++-12"
@@ -40,12 +46,6 @@ jobs:
4046
cc: "gcc-11"
4147
build_type: Release
4248

43-
- name: "gcc10"
44-
install: "g++-10"
45-
cxx: "g++-10"
46-
cc: "gcc-10"
47-
build_type: Release
48-
4949
- name: "clang_format"
5050
install: "g++-11 clang-format-14"
5151
cxx: "g++-11"

.github/workflows/ci_macos.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
include:
25-
- name: "gcc12"
26-
cxx: "g++-12"
27-
cc: "gcc-12"
25+
- name: "gcc13"
26+
cxx: "g++-13"
27+
cc: "gcc-13"
2828
build_type: Release
2929

30-
- name: "gcc10"
31-
cxx: "g++-10"
32-
cc: "gcc-10"
30+
- name: "gcc11"
31+
cxx: "g++-11"
32+
cc: "gcc-11"
3333
build_type: Release
3434

3535
steps:

src/holder_tristate_overload.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@
4040
#include <bio/ranges/views/slice.hpp>
4141
#include <bio/ranges/views/translate_single.hpp>
4242

43-
using overload_t = decltype(std::declval<std::vector<bio::alphabet::dna5> &>() | bio::views::translate_single | bio::views::slice(0,1));
44-
4543
template <typename t>
46-
concept overload_c = std::same_as<std::remove_cvref_t<t>, overload_t>;
44+
concept overload_c = !std::default_initializable<std::remove_cvref_t<t>>;
4745

4846
namespace seqan
4947
{

src/mkindex_algo.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <bio/ranges/views/to_rank.hpp>
3434
#include <bio/ranges/views/translate.hpp>
3535
#include <bio/ranges/views/translate_join.hpp>
36+
#include <bio/ranges/views/validate_char_for.hpp>
3637

3738
#include "mkindex_misc.hpp"
3839
#include "shared_definitions.hpp"
@@ -116,10 +117,10 @@ auto loadSubjSeqsAndIds(LambdaIndexerOptions const & options)
116117
bio::views::char_to<bio::alphabet::dna5>),
117118
bio::ranges::views::char_conversion_view_t<TOrigAlph>>;
118119

119-
bio::io::seq::record r{.id = std::string_view{}, .seq = seq_t{}, .qual = std::ignore};
120+
using rec_t = decltype(bio::io::seq::record{.id = std::string_view{}, .seq = seq_t{}, .qual = std::ignore});
120121
bio::io::seq::reader reader{
121122
options.dbFile,
122-
bio::io::seq::reader_options{.record = r, .truncate_ids = options.truncateIDs}
123+
bio::io::seq::reader_options{.record = rec_t{}, .truncate_ids = options.truncateIDs}
123124
};
124125

125126
size_t count = 0;

src/search_datastructures.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,15 +358,15 @@ class GlobalDataHolder
358358
/* output file */
359359
// SeqAn2 scoring scheme for local alignment of extended seeds. This can be adapted for bisulfite scoring.
360360
using TScoreSchemeAlign =
361-
std::conditional_t<bio::alphabet::nucleotide_alphabet<TTransAlph>,
361+
std::conditional_t<bio::alphabet::nucleotide<TTransAlph>,
362362
std::conditional_t<c_redAlph == AlphabetEnum::DNA3BS,
363363
seqan::Score<int, seqan::ScoreMatrix<seqan::Dna5, seqan::BisulfiteMatrix>>,
364364
seqan::Score<int, seqan::Simple>>,
365365
seqan::Score<int, seqan::ScoreMatrix<seqan::AminoAcid, seqan::ScoreSpecSelectable>>>;
366366

367367
// SeqAn2 scoring scheme for blast statistics (does not work with bisulfite scoring scheme)
368368
using TScoreSchemeStats =
369-
std::conditional_t<bio::alphabet::nucleotide_alphabet<TTransAlph>,
369+
std::conditional_t<bio::alphabet::nucleotide<TTransAlph>,
370370
seqan::Score<int, seqan::Simple>,
371371
seqan::Score<int, seqan::ScoreMatrix<seqan::AminoAcid, seqan::ScoreSpecSelectable>>>;
372372

src/seqan2_to_biocpp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ inline bool operator==(char c, alph_t alph)
267267
return bio::alphabet::to_char(alph) == c;
268268
}
269269

270-
template <typename TValue, typename TSequenceValue, typename TSpec, bio::alphabet::aminoacid_alphabet alph_t>
270+
template <typename TValue, typename TSequenceValue, typename TSpec, bio::alphabet::aminoacid alph_t>
271271
inline auto score(Score<TValue, ScoreMatrix<TSequenceValue, TSpec>> const & scheme,
272272
alph_t const a1,
273273
alph_t const a2) noexcept

src/shared_definitions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ constexpr auto qryTransView = []()
259259
{
260260
if constexpr (c_redAlph == AlphabetEnum::DNA3BS)
261261
return bio::views::type_reduce | bio::views::add_reverse_complement | views::duplicate;
262-
else if constexpr (bio::alphabet::nucleotide_alphabet<_alphabetEnumToType<c_redAlph>>)
262+
else if constexpr (bio::alphabet::nucleotide<_alphabetEnumToType<c_redAlph>>)
263263
return bio::views::type_reduce | bio::views::add_reverse_complement;
264264
else if constexpr (c_origQryAlph == c_transAlph)
265265
return bio::views::type_reduce;

src/shared_misc.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ constexpr bool all_valid(TRange && r)
8282

8383
inline AlphabetEnum detectSeqFileAlphabet(std::string const & path)
8484
{
85-
bio::io::seq::record r{.id = std::ignore, .seq = std::string_view{}, .qual = std::ignore};
86-
bio::io::seq::reader reader{path, bio::io::seq::reader_options{.record = r}};
85+
using rec_t = decltype(bio::io::seq::record{.id = std::ignore, .seq = std::string_view{}, .qual = std::ignore});
86+
bio::io::seq::reader reader{path, bio::io::seq::reader_options{.record = rec_t{}}};
8787

8888
auto & seq = reader.begin()->seq;
8989

submodules/biocpp-core

Submodule biocpp-core updated 174 files

submodules/biocpp-io

Submodule biocpp-io updated 67 files

0 commit comments

Comments
 (0)