Last active
          August 29, 2015 14:20 
        
      - 
      
- 
        Save bertrandmartel/882a1546a50ce3245854 to your computer and use it in GitHub Desktop. 
    [ CPP ] store static data struct 
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | typedef struct statusCodeStruct | |
| { | |
| int code_value; | |
| std::string code_phrase; | |
| statusCodeStruct(int code_value,std::string code_phrase) : | |
| code_value(code_value), code_phrase(code_phrase){} | |
| } statusCode; | |
| static std::vector<statusCodeStruct> http_status_code_list; | |
| static void static_init(){ | |
| http_status_code_list.push_back(statusCodeStruct(100, "Continue" )); | |
| http_status_code_list.push_back(statusCodeStruct(101, "Switching Protocols" )); | |
| http_status_code_list.push_back(statusCodeStruct(200, "OK" )); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment