Open julien-alamelle opened 2 years ago
typedef struct s_object { t_geometry geometry; t_material material; double (intersect)(t_ray ray, t_geometry geometry); t_v3 (normal)(t_v3 point, t_geometry geometry);// error here } t_object;
This is interesting. 'normal' function pointer raises 'missing space after operator' error at '*geometry', but the intersect does not. When the return type of 'normal' is changed to any of the primitive types, we get no errors. The same error is not seen if function pointers are replaced to global scope, probably any scope.
Describe the bug the multiplication operator is interpreted as a dereference in the following code
Erroneous code
Additional infos
Additional context done on 42lyon's mac