Commit da9b8ca
authored
Add the ability to use external definitions for monostate and bad variant access (#55, thanks @MostafaNanticock)
* Add support for configurable monostate type
Introduced variant_CONFIG_MONOSTATE that users can set its value if they want variant-lite to use it instead of its own monostate class
* Add support for configurable bad_variant_access type
Introduced variant_CONFIG_BAD_VARIANT_ACCESS that users can set its value if they want variant-lite to use it instead of its own bad_variant_access class
* Update README.md synopsis: Configuration macros
Added `variant_CONFIG_BAD_VARIANT_ACCESS` and `variant_CONFIG_MONOSTATE` to the Synopsis: Configuration macros section
* Updated template/variant.hpp
* Fixed: std::hash support with variant_CONFIG_MONOSTATE1 parent f403501 commit da9b8ca
3 files changed
+46
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
251 | 277 | | |
252 | 278 | | |
253 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1212 | 1212 | | |
1213 | 1213 | | |
1214 | 1214 | | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
1215 | 1218 | | |
1216 | 1219 | | |
1217 | 1220 | | |
1218 | | - | |
1219 | 1221 | | |
1220 | 1222 | | |
1221 | 1223 | | |
1222 | 1224 | | |
1223 | 1225 | | |
1224 | 1226 | | |
| 1227 | + | |
1225 | 1228 | | |
1226 | 1229 | | |
1227 | 1230 | | |
| |||
1280 | 1283 | | |
1281 | 1284 | | |
1282 | 1285 | | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1283 | 1289 | | |
1284 | 1290 | | |
1285 | 1291 | | |
| |||
1292 | 1298 | | |
1293 | 1299 | | |
1294 | 1300 | | |
| 1301 | + | |
1295 | 1302 | | |
1296 | 1303 | | |
1297 | 1304 | | |
| |||
2698 | 2705 | | |
2699 | 2706 | | |
2700 | 2707 | | |
2701 | | - | |
| 2708 | + | |
2702 | 2709 | | |
2703 | 2710 | | |
2704 | 2711 | | |
| |||
2746 | 2753 | | |
2747 | 2754 | | |
2748 | 2755 | | |
2749 | | - | |
| 2756 | + | |
2750 | 2757 | | |
2751 | 2758 | | |
2752 | 2759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1090 | 1093 | | |
1091 | 1094 | | |
1092 | 1095 | | |
1093 | | - | |
1094 | 1096 | | |
1095 | 1097 | | |
1096 | 1098 | | |
1097 | 1099 | | |
1098 | 1100 | | |
1099 | 1101 | | |
| 1102 | + | |
1100 | 1103 | | |
1101 | 1104 | | |
1102 | 1105 | | |
| |||
1155 | 1158 | | |
1156 | 1159 | | |
1157 | 1160 | | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1158 | 1164 | | |
1159 | 1165 | | |
1160 | 1166 | | |
| |||
1167 | 1173 | | |
1168 | 1174 | | |
1169 | 1175 | | |
| 1176 | + | |
1170 | 1177 | | |
1171 | 1178 | | |
1172 | 1179 | | |
| |||
2043 | 2050 | | |
2044 | 2051 | | |
2045 | 2052 | | |
2046 | | - | |
| 2053 | + | |
2047 | 2054 | | |
2048 | 2055 | | |
2049 | 2056 | | |
| |||
2077 | 2084 | | |
2078 | 2085 | | |
2079 | 2086 | | |
2080 | | - | |
| 2087 | + | |
2081 | 2088 | | |
2082 | 2089 | | |
2083 | 2090 | | |
| |||
0 commit comments