File tree Expand file tree Collapse file tree 3 files changed +19
-19
lines changed Expand file tree Collapse file tree 3 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 6751d40c607c79dd81b4cbc5a07892271a128754
2
+ refs/heads/master: 4aa165553bfb2a74e2e54f08fd9507e23bc24708
Original file line number Diff line number Diff line change @@ -35,24 +35,6 @@ const uint8_t CMP_LE = 2u;
35
35
36
36
namespace shape {
37
37
38
- // NB: This function does not align.
39
- template <typename T>
40
- inline data_pair<T>
41
- bump_dp (ptr_pair &ptr) {
42
- data_pair<T> data (*reinterpret_cast <T *>(ptr.fst ),
43
- *reinterpret_cast <T *>(ptr.snd ));
44
- ptr += sizeof (T);
45
- return data;
46
- }
47
-
48
- template <typename T>
49
- inline data_pair<T>
50
- get_dp (ptr_pair &ptr) {
51
- data_pair<T> data (*reinterpret_cast <T *>(ptr.fst ),
52
- *reinterpret_cast <T *>(ptr.snd ));
53
- return data;
54
- }
55
-
56
38
// A shape printer, useful for debugging
57
39
58
40
void
Original file line number Diff line number Diff line change @@ -665,6 +665,24 @@ class ptr_pair {
665
665
}
666
666
};
667
667
668
+ // NB: This function does not align.
669
+ template <typename T>
670
+ inline data_pair<T>
671
+ bump_dp (ptr_pair &ptr) {
672
+ data_pair<T> data (*reinterpret_cast <T *>(ptr.fst ),
673
+ *reinterpret_cast <T *>(ptr.snd ));
674
+ ptr += sizeof (T);
675
+ return data;
676
+ }
677
+
678
+ template <typename T>
679
+ inline data_pair<T>
680
+ get_dp (ptr_pair &ptr) {
681
+ data_pair<T> data (*reinterpret_cast <T *>(ptr.fst ),
682
+ *reinterpret_cast <T *>(ptr.snd ));
683
+ return data;
684
+ }
685
+
668
686
} // end namespace shape
669
687
670
688
You can’t perform that action at this time.
0 commit comments