Skip to content

Commit

Permalink
Fix the invalid usage of enabler for class definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsy committed Oct 6, 2015
1 parent 250c6b4 commit 5353d18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/pathtracing_example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ int main(int argc, char **argv) {
cornellBox(&scene, &camera, width, height);
// kittenBox(&scene, &camera, width, height);
// kittenEnvmap(&scene, &camera, width, height);

Timer timer;
timer.start();

Expand Down
9 changes: 5 additions & 4 deletions src/utils/rect.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ extern void* enabler;
namespace spica {

#ifdef WITH_ENABLER
template <class T,
typename
std::enable_if<std::is_arithmetic<T>::value>::type *& = enabler>
template <class T, class Enable = void>
#else
template <class T>
#endif
class Rect_ {
class Rect_;

template <class T>
class Rect_<T, typename std::enable_if<std::is_arithmetic<T>::value>::type> {
private:
T _x, _y, _width, _height;

Expand Down

0 comments on commit 5353d18

Please sign in to comment.