Skip to content
Snippets Groups Projects
Commit b2642eb7 authored by Aaron Grabowy's avatar Aaron Grabowy
Browse files

Fixed gcc error

parent 7aa50e07
No related branches found
No related tags found
1 merge request!100Intersections with ray/line for all objects + various smaller additions
......@@ -46,8 +46,8 @@ template <int D, class ScalarT>
struct line
{
using scalar_t = ScalarT;
using dir_t = dir<D, ScalarT>;
using pos_t = pos<D, ScalarT>;
using dir_t = tg::dir<D, ScalarT>; // Note: gcc requires the tg:: prefix to distinguish from member variable
using pos_t = tg::pos<D, ScalarT>;
pos_t pos;
dir_t dir;
......
......@@ -44,8 +44,8 @@ template <int D, class ScalarT>
struct ray
{
using scalar_t = ScalarT;
using dir_t = dir<D, ScalarT>;
using pos_t = pos<D, ScalarT>;
using dir_t = tg::dir<D, ScalarT>; // Note: gcc requires the tg:: prefix to distinguish from member variable
using pos_t = tg::pos<D, ScalarT>;
pos_t origin;
dir_t dir;
......
......@@ -44,6 +44,7 @@ using usegment4 = segment<4, u32>;
template <int D, class ScalarT>
struct segment
{
using scalar_t = ScalarT;
using pos_t = pos<D, ScalarT>;
pos_t pos0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment