Commit b2642eb7 authored by Aaron Grabowy's avatar Aaron Grabowy
Browse files

Fixed gcc error

parent 7aa50e07
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment