Commit a6d2f3ea authored by Davis King's avatar Davis King

Fixed compiler error.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402783
parent b757fb61
...@@ -124,12 +124,14 @@ bool is_key (unsigned long n) ...@@ -124,12 +124,14 @@ bool is_key (unsigned long n)
template <int bits> template <int bits>
class uf_gate; class uf_gate;
namespace dlib {
template <int bits> template <int bits>
struct gate_traits<uf_gate<bits> > struct gate_traits<uf_gate<bits> >
{ {
static const long num_bits = bits; static const long num_bits = bits;
static const long dims = dlib::qc_helpers::exp_2_n<num_bits>::value; static const long dims = dlib::qc_helpers::exp_2_n<num_bits>::value;
}; };}
template <int bits> template <int bits>
class uf_gate : public gate_exp<uf_gate<bits> > class uf_gate : public gate_exp<uf_gate<bits> >
...@@ -184,12 +186,14 @@ public: ...@@ -184,12 +186,14 @@ public:
template <int bits> template <int bits>
class w_gate; class w_gate;
namespace dlib {
template <int bits> template <int bits>
struct gate_traits<w_gate<bits> > struct gate_traits<w_gate<bits> >
{ {
static const long num_bits = bits; static const long num_bits = bits;
static const long dims = dlib::qc_helpers::exp_2_n<num_bits>::value; static const long dims = dlib::qc_helpers::exp_2_n<num_bits>::value;
}; }; }
template <int bits> template <int bits>
class w_gate : public gate_exp<w_gate<bits> > class w_gate : public gate_exp<w_gate<bits> >
......
Markdown is supported
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