File: fmt10.patch

package info (click to toggle)
genomicsdb 1.5.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,316 kB
  • sloc: cpp: 68,637; ansic: 58,281; java: 8,230; python: 2,315; sh: 2,115; perl: 1,621; makefile: 499; xml: 496
file content (50 lines) | stat: -rw-r--r-- 1,624 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Description: introducing format_as functions to comply with fmtlib 10
Author: Pierre Gruet <pgt@debian.org>
Bug-Debian: https://bugs.debian.org/1086565
Forwarded: https://github.com/GenomicsDB/GenomicsDB/issues/346
Last-Update: 2024-11-30

--- a/src/main/cpp/src/api/genomicsdb.cc
+++ b/src/main/cpp/src/api/genomicsdb.cc
@@ -40,6 +40,8 @@
 #  include <malloc.h>
 #endif
 
+#include <fmt/format.h>
+
 #include "annotation_service.h"
 #include "broad_combined_gvcf.h"
 #include "query_variants.h"
@@ -369,6 +371,10 @@
   return query_variant_calls(processor, "", NONE);
 }
 
+auto format_as(GenomicsDB::query_config_type_t q) {
+  return fmt::underlying(q);
+}
+
 GenomicsDBVariantCalls GenomicsDB::query_variant_calls(GenomicsDBVariantCallProcessor& processor,
                                                        const std::string& query_configuration,
                                                        const query_config_type_t query_configuration_type) {
--- a/src/main/cpp/src/loader/tiledb_loader.cc
+++ b/src/main/cpp/src/loader/tiledb_loader.cc
@@ -22,6 +22,8 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
 
+#include <fmt/format.h>
+
 #include "tiledb_loader.h"
 #include "timer.h"
 #include "vcf2binary.h"
@@ -206,6 +208,10 @@
   m_exchanges.clear();
 }
 
+auto format_as(VidFileTypeEnum v) {
+  return fmt::underlying(v);
+}
+
 File2TileDBBinaryBase* VCF2TileDBConverter::create_file2tiledb_object(const FileInfo& file_info, const uint64_t local_file_idx,
     const std::vector<ColumnRange>& partition_bounds) {
   File2TileDBBinaryBase* file2binary_base_ptr = 0;