#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(bravo.cbegin(), bravo.cend(), std::back_inserter(call), [](uint8_t a)
{ return static_cast<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;
}