#include <bits/stdc++.h>
#include <stdio.h>
#include <iostream>
#include <vector>
enum class ValType : uint8_t
{
Working = 1,
Failed = 0,
Freezed = 0
};
int main()
{
std::vector<uint8_t> bravo = {23, 23, 23, 22, 5};
std::vector<ValType> call;
ValType Type = static_cast<ValType>(7);
call.push_back(Type);
std::transform(call.cbegin(), call.cend(), std::back_inserter(bravo), [](ValType a)
{ return static_cast<std::underlying_type_t<ValType>>(a); });
for (int i = 0; i < bravo.size(); i++)
{
std::cout << unsigned(bravo[i]) << " ";
}
//expected bravo should have 23 23 23 22 5 7
return 0;
}