Ignore:
Timestamp:
May 10, 2016, 12:12:41 AM (3 years ago)
Author:
nmedfort
Message:

UnicodeSet? bug fix and compile warning clean-up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/kernel.h

    r5008 r5037  
    2929}
    3030
     31template<typename T>
     32struct disable_implicit_conversion {
     33    inline disable_implicit_conversion(T const value) : _value(value) { assert(_value); }
     34    inline disable_implicit_conversion(std::nullptr_t) = delete;
     35    inline disable_implicit_conversion(unsigned) = delete;
     36    operator T() const { return _value; }
     37    T operator-> () const { return _value; }
     38    T get() const { return _value; }
     39private:
     40    T const  _value;
     41};
     42
    3143namespace kernel {
    3244
     
    4153
    4254    KernelBuilder(IDISA::IDISA_Builder * builder, std::string && name, const unsigned defaultBufferSize);
    43 
    44     template<typename T>
    45     struct disable_implicit_conversion {
    46         inline disable_implicit_conversion(T const value) : _value(value) { assert(_value); }
    47         inline disable_implicit_conversion(std::nullptr_t) = delete;
    48         inline disable_implicit_conversion(unsigned) = delete;
    49         operator T() const { return _value; }
    50         T operator-> () const { return _value; }
    51         T get() const { return _value; }
    52     private:
    53         T const  _value;
    54     };
    5555
    5656    unsigned addInternalState(llvm::Type * const type);
Note: See TracChangeset for help on using the changeset viewer.