Commit Graph

8 Commits (63b1453dd8f0f579929fe7341f559b916cebcc2b)

Author SHA1 Message Date
Lioncash 2dce9b2ead bit_field: Fix a typo in the sample usage. 11 years ago
Tony Wasserka 0da8e2eacc BitField: Cast enum values to proper integer type. 11 years ago
Tony Wasserka cd1d5786d9 BitField: Add a static_assert.
Being able to store BitField within unions requires BitField to be of standard layout, which in turn is only given if the underlying type is also has standard layout.
11 years ago
Tony Wasserka 15ab5382a5 BitField: Delete copy assignment to prevent obscure bugs.
Cf. https://github.com/dolphin-emu/dolphin/pull/483
11 years ago
Tony Wasserka 47a001722d BitField: Add an explicit evaluation method.
Sometimes it can be beneficial to use this in places where an explicit cast needs to happen otherwise. By using the evaluation method, it's not necessary anymore to explicitly write the underlying type in this case.
11 years ago
bunnei a6b047ec3b removed incorrect dolphin copyright line 11 years ago
bunnei a713bd1bad fixed include of common in bit_field.h 11 years ago
bunnei e7a0283625 added BitField to common 11 years ago