Lecture 6 - Slide 36 : 40
Conditional declarations
Conditional declaration can be done with
enable_if
Illustrated on the
move
member in class
Point<C>
The C++ Prog. Lang. (4. edition)
: enable_if. Page 795
Class Point header file - where move is only enabled for floating point types.
Implementation of
Point<C>
members.
Use of class
Point<double>
with move - OK.
Use of class Point
with move - does not compile.